Skip to content

Commit 470efb2

Browse files
author
Kadi Kraman
authored
Merge pull request #437 from FormidableLabs/fix/update-ios-instructions
Update iOS instructions for iOS 10 and below
2 parents 58b3c31 + 1349feb commit 470efb2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Example/ios/RNAppAuthExample/AppDelegate.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
3030
return YES;
3131
}
3232

33+
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *, id> *) options {
34+
return [self.authorizationFlowManagerDelegate resumeExternalUserAgentFlowWithURL:url];
35+
}
36+
3337
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
3438
{
3539
#if DEBUG

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ Make `AppDelegate` conform to `RNAppAuthAuthorizationFlowManager` with the follo
341341
Add the following code to `AppDelegate.m` (to support iOS 10 and below)
342342
343343
```diff
344-
+ (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *, id> *) options {
344+
+ - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *, id> *) options {
345345
+ return [self.authorizationFlowManagerDelegate resumeExternalUserAgentFlowWithURL:url];
346346
+ }
347347
```

0 commit comments

Comments
 (0)