Skip to content

Commit b5273bb

Browse files
authored
Merge pull request #489 from BranchMetrics/update-doc-issue-487
Updated doc for application:willFinishLaunchingWithOptions:
2 parents 962ffc3 + 7f37e0a commit b5273bb

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

README.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ To deep link, Branch must initialize a session to check if the user originated f
210210

211211
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray *restorableObjects))restorationHandler {
212212
BOOL handledByBranch = [[Branch getInstance] continueUserActivity:userActivity];
213-
213+
214214
return handledByBranch;
215215
}
216216

@@ -250,6 +250,22 @@ func application(_ application: UIApplication, didReceiveRemoteNotification laun
250250
}
251251
```
252252

253+
254+
Note: If your application delegate declares the method:
255+
256+
```
257+
- (BOOL) application:willFinishLaunchingWithOptions:
258+
```
259+
260+
In Swift:
261+
262+
```
263+
optional func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool
264+
```
265+
266+
it must return ```YES``` for Branch to work.
267+
268+
253269
#### Parameters
254270

255271
###### initSession
@@ -719,7 +735,7 @@ linkProperties.feature = @"sharing";
719735
```objc
720736
[branchUniversalObject showShareSheetWithLinkProperties:linkProperties
721737
andShareText:@"Super amazing thing I want to share!"
722-
fromViewController:self
738+
fromViewController:self
723739
completion:^(NSString *activityType, BOOL completed){
724740
NSLog(@"finished presenting");
725741
}];
@@ -748,9 +764,9 @@ branchUniversalObject.showShareSheet(with: linkProperties,
748764

749765
**andShareText**: A dictionary to use while building up the Branch link.
750766

751-
**fromViewController**:
767+
**fromViewController**:
752768

753-
**completion**:
769+
**completion**:
754770

755771
#### Further Customization
756772

0 commit comments

Comments
 (0)