From fac7941e2e827b21e1937eaea753f9d4767a9731 Mon Sep 17 00:00:00 2001 From: Wenzhi Date: Mon, 19 Sep 2016 12:27:54 -0400 Subject: [PATCH] Updating Unity plugins to 1.8.1 --- Assets/Plugins/iOS/AppboyAppDelegate.mm | 11 ++++++++++- CHANGELOG.md | 3 +++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Assets/Plugins/iOS/AppboyAppDelegate.mm b/Assets/Plugins/iOS/AppboyAppDelegate.mm index deb06c03f..4f4bded7a 100644 --- a/Assets/Plugins/iOS/AppboyAppDelegate.mm +++ b/Assets/Plugins/iOS/AppboyAppDelegate.mm @@ -39,9 +39,18 @@ - (void)application:(UIApplication *)application didRegisterForRemoteNotificatio [[AppboyUnityManager sharedInstance] registerPushToken:deviceToken]; } +- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { + [super application:application didReceiveRemoteNotification:userInfo]; + NSLog(@"AppboyAppDelegate called from application:didReceiveRemoteNotification:. UIApplicationState is %ld", (long)[[UIApplication sharedApplication] applicationState]); + + // Pass notification to Appboy + [[AppboyUnityManager sharedInstance] registerApplication:application + didReceiveRemoteNotification:userInfo]; +} + - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult result))handler { [super application:application didReceiveRemoteNotification:userInfo fetchCompletionHandler:handler]; - NSLog(@"AppboyAppDelegate called from application:didReceiveRemoteNotification. UIApplicationState is %ld", (long)[[UIApplication sharedApplication] applicationState]); + NSLog(@"AppboyAppDelegate called from application:didReceiveRemoteNotification:fetchCompletionHandler:. UIApplicationState is %ld", (long)[[UIApplication sharedApplication] applicationState]); // Pass notification to Appboy [[AppboyUnityManager sharedInstance] registerApplication:application diff --git a/CHANGELOG.md b/CHANGELOG.md index b99d6a667..c89dc2ce7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.8.1 +* Updates SDK to modify delegate usage to fix an issue with push-click handling introduced in iOS 10 - see https://github.com/Appboy/appboy-ios-sdk/blob/master/CHANGELOG.md for details. + ## 1.8.0 * Updates the iOS plugin to use Appboy iOS SDK 2.21.0, which drops support for iOS 6. * Updates the Android plugin to use Appboy Android SDK 1.13.5.