Skip to content

Commit 20a0a13

Browse files
committed
Merge pull request #304 from BranchMetrics/fix-README
minor fixes
2 parents f5a4480 + 8d6cbb3 commit 20a0a13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ To deep link, Branch must initialize a session to check if the user originated f
148148
```objc
149149
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
150150
Branch *branch = [Branch getInstance];
151-
[branch initSessionWithLaunchOptions:launchOptions isReferrable:YES andRegisterDeepLinkHandler:^(NSDictionary *params, NSError *error) {
151+
[branch initSessionWithLaunchOptions:launchOptions andRegisterDeepLinkHandler:^(NSDictionary *params, NSError *error) {
152152
// route the user based on what's in params
153153
}];
154154
return YES;
@@ -176,13 +176,13 @@ To deep link, Branch must initialize a session to check if the user originated f
176176
```swift
177177
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
178178
let branch: Branch = Branch.getInstance()
179-
branch.initSessionWithLaunchOptions(launchOptions, true, andRegisterDeepLinkHandler: { params, error in
179+
branch.initSessionWithLaunchOptions(launchOptions, andRegisterDeepLinkHandler: { params, error in
180180
// route the user based on what's in params
181181
})
182182
return true
183183
}
184184

185-
func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject?) -> Bool {
185+
func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject) -> Bool {
186186
if (!Branch.getInstance().handleDeepLink(url)) {
187187
// do other deep link routing for the Facebook SDK, Pinterest SDK, etc
188188
}

0 commit comments

Comments
 (0)