Skip to content

Commit 8c635cd

Browse files
authored
Merge pull request ionic-team#161 from mmodzelewski/push-notificaitons
Verify that the uri exists in push notification - looks good
2 parents 80c067b + ed40fab commit 8c635cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ios/AppDelegate+IonicDeeplink.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ - (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserAct
5656

5757
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
5858
// Pass the push notification to the plugin
59+
if([userInfo objectForKey:@"uri"] == nil) {
60+
return;
61+
}
62+
5963
if(application.applicationState == UIApplicationStateInactive || application.applicationState == UIApplicationStateBackground) {
6064
IonicDeeplinkPlugin *plugin = [self.viewController getCommandInstance:PLUGIN_NAME];
6165

0 commit comments

Comments
 (0)