Skip to content

Commit

Permalink
Merge pull request #79 from Telerik-Verified-Plugins/feature/ios9
Browse files Browse the repository at this point in the history
re-enable didReceive notifications with fetch completion handler
  • Loading branch information
mitkodev committed Apr 28, 2016
2 parents 28f5e4d + 4366fcd commit 83e1884
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="com.phonegap.plugins.PushPlugin"
version="3.1.1">
version="3.2.0">

<name>PushPlugin</name>

Expand Down
8 changes: 4 additions & 4 deletions src/ios/AppDelegate+notification.m
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotif
// this method is invoked when:
// - a regular notification is tapped
// - an interactive notification is tapped, but not one of its buttons
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
/*- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
NSLog(@"didReceiveNotification");
if (application.applicationState == UIApplicationStateActive) {
Expand All @@ -101,9 +101,9 @@ - (void)application:(UIApplication *)application didReceiveRemoteNotification:(N
//save it for later
self.launchNotification = userInfo;
}
}
}*/

/*- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void(^)(UIBackgroundFetchResult result))completionHandler
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void(^)(UIBackgroundFetchResult result))completionHandler
{
NSLog(@"didReceiveRemoteNotification with fetchCompletionHandler");

Expand Down Expand Up @@ -144,7 +144,7 @@ - (void)application:(UIApplication *)application didReceiveRemoteNotification:(N
}
}

}*/
}

#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 90000
// this method is invoked when:
Expand Down

0 comments on commit 83e1884

Please sign in to comment.