diff --git a/Assets/Plugins/Android/AndroidManifest.xml b/Assets/Plugins/Android/AndroidManifest.xml index 2b3516464..80768fc04 100644 --- a/Assets/Plugins/Android/AndroidManifest.xml +++ b/Assets/Plugins/Android/AndroidManifest.xml @@ -41,5 +41,13 @@ + + + + + + + + diff --git a/Assets/Plugins/Android/libs/appboy-ui.aar b/Assets/Plugins/Android/libs/appboy-ui.aar index 17a284bce..8984219d2 100644 Binary files a/Assets/Plugins/Android/libs/appboy-ui.aar and b/Assets/Plugins/Android/libs/appboy-ui.aar differ diff --git a/Assets/Plugins/Android/libs/appboy-unity.aar b/Assets/Plugins/Android/libs/appboy-unity.aar index db70b7894..8385c9eb2 100644 Binary files a/Assets/Plugins/Android/libs/appboy-unity.aar and b/Assets/Plugins/Android/libs/appboy-unity.aar differ diff --git a/Assets/Plugins/Android/libs/appboy.aar b/Assets/Plugins/Android/libs/appboy.aar index ca3f73003..d25783946 100644 Binary files a/Assets/Plugins/Android/libs/appboy.aar and b/Assets/Plugins/Android/libs/appboy.aar differ diff --git a/Assets/Plugins/Android/res/values/appboy.xml b/Assets/Plugins/Android/res/values/appboy.xml index 5c26c3b7d..d327ccc40 100755 --- a/Assets/Plugins/Android/res/values/appboy.xml +++ b/Assets/Plugins/Android/res/values/appboy.xml @@ -21,6 +21,12 @@ + + + + + + UNITY diff --git a/Assets/Plugins/Appboy/AppboyBinding.cs b/Assets/Plugins/Appboy/AppboyBinding.cs index e715140cb..ec87618f8 100755 --- a/Assets/Plugins/Appboy/AppboyBinding.cs +++ b/Assets/Plugins/Appboy/AppboyBinding.cs @@ -278,10 +278,6 @@ public static void setUserTwitterData(int? twitterUserId, string twitterHandle, _setUserTwitterData(twitterUserId == null ? -1 : (int)twitterUserId, twitterHandle, name, description, followerCount == null ? -1 : (int)followerCount, followingCount == null ? -1 : (int)followingCount, tweetCount == null ? -1 : (int)tweetCount, profileImageUrl); } - public static void SubmitFeedback(string replyToEmail, string message, bool isReportingABug) { - // no-op - } - public static void DisplayNextInAppMessage(bool withDelegate) { _displayNextInAppMessage(withDelegate); } @@ -317,10 +313,6 @@ public static void LogFeedDisplayed() { _logFeedDisplayed(); } - public static void LogFeedbackDisplayed() { - // no-op - } - public static void WipeData() { _wipeData(); } @@ -701,11 +693,6 @@ public static void RemoveFromCustomUserAttributeArray(string key, string value) GetCurrentUser().Call("removeFromCustomAttributeArray", key, value); } - public static void SubmitFeedback(string replyToEmail, string message, bool isReportingABug) { - object[] args = new object[] { replyToEmail, message, isReportingABug }; - Appboy.Call("submitFeedback", args); - } - public static void RegisterAppboyPushMessages(string registrationId) { Appboy.Call("registerAppboyPushMessages", new object[] { registrationId }); } @@ -737,10 +724,6 @@ public static void LogFeedDisplayed() { Appboy.Call("logFeedDisplayed"); } - public static void LogFeedbackDisplayed() { - Appboy.Call("logFeedbackDisplayed"); - } - public static void WipeData() { Appboy.CallStatic("wipeData", appboyUnityActivity); } @@ -871,9 +854,6 @@ public static void setUserTwitterData(int? twitterUserId, string twitterHandle, public static void RemoveFromCustomUserAttributeArray(string key, string value) { } - public static void SubmitFeedback(string replyToEmail, string message, bool isReportingABug) { - } - public static void RegisterAppboyPushMessages(string registrationId) { } @@ -895,9 +875,6 @@ public static void LogInAppMessageButtonClicked(string inAppMessageJSONString, i public static void LogFeedDisplayed() { } - public static void LogFeedbackDisplayed() { - } - public static void WipeData() { } diff --git a/Assets/Plugins/iOS/AppboyUnityManager.mm b/Assets/Plugins/iOS/AppboyUnityManager.mm index e0735fbcd..89c423326 100644 --- a/Assets/Plugins/iOS/AppboyUnityManager.mm +++ b/Assets/Plugins/iOS/AppboyUnityManager.mm @@ -287,7 +287,7 @@ - (void) registerForRemoteNotifications { - (void) registerPushToken:(NSData *)deviceToken { if ([self.appboyUnityPlist[ABKUnityAutomaticPushIntegrationKey] boolValue]) { - [[Appboy sharedInstance] registerPushToken:[NSString stringWithFormat:@"%@", deviceToken]]; + [[Appboy sharedInstance] registerDeviceToken:deviceToken]; } } diff --git a/CHANGELOG.md b/CHANGELOG.md index 501f49811..05f9cf53e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,28 @@ +## 1.21.0 + +##### Breaking +- Updated the iOS plugin to use [Braze iOS SDK 3.20.0](https://github.com/Appboy/appboy-ios-sdk/releases/tag/3.20.0). +- **Important:** Braze iOS SDK 3.20.0 contains updated push token registration methods. We recommend upgrading to these methods as soon as possible to ensure a smooth transition as devices upgrade to iOS 13. In `application:didRegisterForRemoteNotificationsWithDeviceToken:`, replace +``` +[[Appboy sharedInstance] registerPushToken: + [NSString stringWithFormat:@"%@", deviceToken]]; +``` +with +``` +[[Appboy sharedInstance] registerDeviceToken:deviceToken]]; +``` +- Updated the Android plugin to use [Braze Android SDK 3.7.0](https://github.com/Appboy/appboy-android-sdk/blob/master/CHANGELOG.md#370). +- Note: This Braze Unity SDK release updates to a Braze Android SDK dependency which no longer enables automatic Braze location collection by default. Please consult the changelogs for information on how to continue to enable automatic Braze location collection, as well as further information on breaking changes. +- Removes the Feedback feature and all associated methods, classes, and interfaces. + ## 1.20.0 ##### Breaking - Updated the iOS plugin to use [Braze iOS SDK 3.18.0](https://github.com/Appboy/appboy-ios-sdk/releases/tag/3.18.0). - - Braze iOS SDK 3.18.0 removed the Feedback feature. As a result, all Feedback methods on the Appboy interface are now a no-op on iOS. +- Note: This Braze Unity SDK release updates to a Braze iOS SDK dependency which no longer enables automatic Braze location collection by default. Please consult the changelogs for information on how to continue to enable automatic Braze location collection, as well as further information on breaking changes. ##### Added -- Added `RequestLocationInitialization` to the Appboy interface, which wraps `AppboyLocationService.requestInitialization(context)` on the Android SDK. +- Added `RequestLocationInitialization` to the Appboy interface for requesting Braze geofences and a single location update. ## 1.19.0