Skip to content

Commit

Permalink
Updating Unity plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Bucimis committed Sep 13, 2019
1 parent 32aeb3f commit 7c1937d
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 26 deletions.
8 changes: 8 additions & 0 deletions Assets/Plugins/Android/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,13 @@
<category android:name="REPLACE_WITH_YOUR_BUNDLE_IDENTIFIER" />
</intent-filter>
</receiver>

<receiver android:name="com.appboy.unity.AppboyUnityPushBroadcastReceiver" android:exported="false" >
<intent-filter>
<action android:name="REPLACE_WITH_YOUR_BUNDLE_IDENTIFIER.intent.APPBOY_PUSH_RECEIVED" />
<action android:name="REPLACE_WITH_YOUR_BUNDLE_IDENTIFIER.intent.APPBOY_NOTIFICATION_OPENED" />
<action android:name="REPLACE_WITH_YOUR_BUNDLE_IDENTIFIER.intent.APPBOY_PUSH_DELETED" />
</intent-filter>
</receiver>
</application>
</manifest>
Binary file modified Assets/Plugins/Android/libs/appboy-ui.aar
Binary file not shown.
Binary file modified Assets/Plugins/Android/libs/appboy-unity.aar
Binary file not shown.
Binary file modified Assets/Plugins/Android/libs/appboy.aar
Binary file not shown.
6 changes: 6 additions & 0 deletions Assets/Plugins/Android/res/values/appboy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
<!-- <string name="com_appboy_inapp_listener_callback_method_name"></string> --> <!-- The callback method to be called when an inapp message is received. -->
<!-- <string name="com_appboy_feed_listener_game_object_name"></string> --> <!-- The Unity game object to receive the news feed. -->
<!-- <string name="com_appboy_feed_listener_callback_method_name"></string> --> <!-- The callback method to be called when the news feed is received. -->
<!-- <string name="com_appboy_push_received_game_object_name"></string> --> <!-- The Unity game object to receive push received messages. -->
<!-- <string name="com_appboy_push_received_callback_method_name"></string> --> <!-- The callback method to be called when a push received message is received. -->
<!-- <string name="com_appboy_push_opened_game_object_name"></string> --> <!-- The Unity game object to receive push opened messages. -->
<!-- <string name="com_appboy_push_opened_callback_method_name"></string> --> <!-- The callback method to be called when a push opened message is received. -->
<!-- <string name="com_appboy_push_deleted_game_object_name"></string> --> <!-- The Unity game object to receive push deleted messages. -->
<!-- <string name="com_appboy_push_deleted_callback_method_name"></string> --> <!-- The callback method to be called when a push deleted message is received. -->

<!--- Internal Braze Usage -->
<string name="com_appboy_sdk_flavor">UNITY</string>
Expand Down
23 changes: 0 additions & 23 deletions Assets/Plugins/Appboy/AppboyBinding.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -317,10 +313,6 @@ public static void LogFeedDisplayed() {
_logFeedDisplayed();
}

public static void LogFeedbackDisplayed() {
// no-op
}

public static void WipeData() {
_wipeData();
}
Expand Down Expand Up @@ -701,11 +693,6 @@ public static void RemoveFromCustomUserAttributeArray(string key, string value)
GetCurrentUser().Call<bool>("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 });
}
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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) {
}

Expand All @@ -895,9 +875,6 @@ public static void LogInAppMessageButtonClicked(string inAppMessageJSONString, i
public static void LogFeedDisplayed() {
}

public static void LogFeedbackDisplayed() {
}

public static void WipeData() {
}

Expand Down
2 changes: 1 addition & 1 deletion Assets/Plugins/iOS/AppboyUnityManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
}

Expand Down
21 changes: 19 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 7c1937d

Please sign in to comment.