Skip to content

Commit 30c2802

Browse files
sattamanKadi Kraman
authored and
Kadi Kraman
committed
Update README.md (#343)
Update instructions to cover iOS10 and below
1 parent f160144 commit 30c2802

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,14 @@ Make `AppDelegate` conform to `RNAppAuthAuthorizationFlowManager` with the follo
293293
+ @property(nonatomic, weak)id<RNAppAuthAuthorizationFlowManagerDelegate>authorizationFlowManagerDelegate;
294294
```
295295
296+
Add the following code to `AppDelegate.m` (to support iOS 10 and below)
297+
298+
```diff
299+
+ (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *, id> *) options {
300+
+ return [self.authorizationFlowManagerDelegate resumeExternalUserAgentFlowWithURL:url];
301+
+ }
302+
```
303+
296304
#### Integration of the library with a Swift iOS project
297305
298306
The approach mentioned above should also be possible to employ with Swift. In this case one should have to import `RNAppAuth`

0 commit comments

Comments
 (0)