Skip to content

Commit

Permalink
WP8 and Android bug fixes
Browse files Browse the repository at this point in the history
WP8
* WP8 bug fix where taping on the notification text without additional data set would crash the app.
* Now passes notification text to the notification opened callback if the user is in your app when a notification comes in.

Android
* isActive is not true when it should be when EnableInAppAlertNotification is set to true.
  • Loading branch information
jkasten2 committed Jun 8, 2015
1 parent ce30dbe commit d51be0b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
Binary file not shown.
10 changes: 7 additions & 3 deletions UnityOneSignalExample/Assets/Plugins/OneSignal/OneSignalWP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@
class OneSignalWP : OneSignalPlatform {

public OneSignalWP(string appId) {
OneSignalSDK.OneSignal.Init(appId, (additionalData, isActive) => {
if (OneSignal.notificationDelegate != null)
OneSignal.notificationDelegate("", additionalData.ToDictionary(pair => pair.Key, pair=>(object)pair.Value), isActive);
OneSignalSDK.OneSignal.Init(appId, (message, inAdditionalData, isActive) => {
if (OneSignal.notificationDelegate != null) {
Dictionary<string, object> additionalData = null;
if (inAdditionalData != null)
additionalData = inAdditionalData.ToDictionary(pair => pair.Key, pair=>(object)pair.Value);
OneSignal.notificationDelegate(message, additionalData, isActive);
}
});
}

Expand Down
2 changes: 1 addition & 1 deletion UnityOneSignalExample/Assets/Plugins/OneSignal/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.9.0
1.9.1
Binary file modified UnityOneSignalExample/Assets/Plugins/OneSignalSDK.dll
Binary file not shown.
Binary file modified UnityOneSignalExample/Assets/Plugins/WP8/OneSignalSDK.dll
Binary file not shown.
Binary file modified UnityOneSignalSDK.unitypackage
Binary file not shown.

0 comments on commit d51be0b

Please sign in to comment.