Skip to content

Commit

Permalink
fix: removed testbed/config.xml from GitHub since cordova 7.0.0 overr…
Browse files Browse the repository at this point in the history
…ides defaults
  • Loading branch information
ethanneff committed Jul 11, 2017
1 parent 5c59d53 commit c575200
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ testbed/platforms
testbed/plugins
testbed/hooks
testbed/build.json
testbed/config.xml
testbed/package.json
node_modules
.installed
Expand Down
12 changes: 11 additions & 1 deletion src/ios/AppDelegate+BranchSdk.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#import <Branch/Branch.h>
#endif

@interface AppDelegate (BranchSDK)
@interface AppDelegate (BranchSdk)

- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray * _Nullable))restorationHandler;

Expand Down Expand Up @@ -48,4 +48,14 @@ - (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserAct
return YES;
}

// Respond to Push Notifications
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
@try {
[[Branch getInstance] handlePushNotification:userInfo];
}
@catch (NSException *exception) {
[[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:@"BSDKPostUnhandledURL" object:userInfo]];
}
}

@end
File renamed without changes.

0 comments on commit c575200

Please sign in to comment.