diff --git a/UnityOneSignalExample/Assets/Plugins/Android/OneSignal/libs/OneSignalSDK.jar b/UnityOneSignalExample/Assets/Plugins/Android/OneSignal/libs/OneSignalSDK.jar index d04c35636..a99b4ca7d 100644 Binary files a/UnityOneSignalExample/Assets/Plugins/Android/OneSignal/libs/OneSignalSDK.jar and b/UnityOneSignalExample/Assets/Plugins/Android/OneSignal/libs/OneSignalSDK.jar differ diff --git a/UnityOneSignalExample/Assets/Plugins/OneSignal/OneSignalWP.cs b/UnityOneSignalExample/Assets/Plugins/OneSignal/OneSignalWP.cs index a2ab16712..a6054c182 100644 --- a/UnityOneSignalExample/Assets/Plugins/OneSignal/OneSignalWP.cs +++ b/UnityOneSignalExample/Assets/Plugins/OneSignal/OneSignalWP.cs @@ -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 additionalData = null; + if (inAdditionalData != null) + additionalData = inAdditionalData.ToDictionary(pair => pair.Key, pair=>(object)pair.Value); + OneSignal.notificationDelegate(message, additionalData, isActive); + } }); } diff --git a/UnityOneSignalExample/Assets/Plugins/OneSignal/VERSION b/UnityOneSignalExample/Assets/Plugins/OneSignal/VERSION index abb165823..ee672d89a 100644 --- a/UnityOneSignalExample/Assets/Plugins/OneSignal/VERSION +++ b/UnityOneSignalExample/Assets/Plugins/OneSignal/VERSION @@ -1 +1 @@ -1.9.0 \ No newline at end of file +1.9.1 \ No newline at end of file diff --git a/UnityOneSignalExample/Assets/Plugins/OneSignalSDK.dll b/UnityOneSignalExample/Assets/Plugins/OneSignalSDK.dll index 0817e0644..c1f87e4d1 100644 Binary files a/UnityOneSignalExample/Assets/Plugins/OneSignalSDK.dll and b/UnityOneSignalExample/Assets/Plugins/OneSignalSDK.dll differ diff --git a/UnityOneSignalExample/Assets/Plugins/WP8/OneSignalSDK.dll b/UnityOneSignalExample/Assets/Plugins/WP8/OneSignalSDK.dll index 55e7e91d3..e7e1ed809 100644 Binary files a/UnityOneSignalExample/Assets/Plugins/WP8/OneSignalSDK.dll and b/UnityOneSignalExample/Assets/Plugins/WP8/OneSignalSDK.dll differ diff --git a/UnityOneSignalSDK.unitypackage b/UnityOneSignalSDK.unitypackage index f43fae9c7..22a6036d5 100644 Binary files a/UnityOneSignalSDK.unitypackage and b/UnityOneSignalSDK.unitypackage differ