Skip to content

Commit

Permalink
Update iOS instructions for iOS 10 and below
Browse files Browse the repository at this point in the history
  • Loading branch information
Kadi Kraman committed Jan 9, 2020
1 parent 58b3c31 commit 1349feb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Example/ios/RNAppAuthExample/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
return YES;
}

- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *, id> *) options {
return [self.authorizationFlowManagerDelegate resumeExternalUserAgentFlowWithURL:url];
}

- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
#if DEBUG
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ Make `AppDelegate` conform to `RNAppAuthAuthorizationFlowManager` with the follo
Add the following code to `AppDelegate.m` (to support iOS 10 and below)
```diff
+ (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *, id> *) options {
+ - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString *, id> *) options {
+ return [self.authorizationFlowManagerDelegate resumeExternalUserAgentFlowWithURL:url];
+ }
```
Expand Down

0 comments on commit 1349feb

Please sign in to comment.