Skip to content

Commit 161ceab

Browse files
committed
Update README.md
1 parent 5c66377 commit 161ceab

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
@@ -166,6 +166,10 @@ To deep link, Branch must initialize a session to check if the user originated f
166166

167167
return handledByBranch;
168168
}
169+
170+
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
171+
[[Branch getInstance] handlePushNotification:userInfo];
172+
}
169173
```
170174

171175
###### Swift
@@ -192,6 +196,10 @@ func application(application: UIApplication, continueUserActivity userActivity:
192196

193197
return true
194198
}
199+
200+
func application(application: UIApplication, didReceiveRemoteNotification launchOptions: [NSObject: AnyObject]?) -> Void {
201+
Branch.getInstance().handlePushNotification(launchOptions)
202+
}
195203
```
196204

197205
#### Parameters

0 commit comments

Comments
 (0)