diff --git a/Unity4.7OneSignalExample/Assets/Plugins/Android/OneSignal/libs/OneSignalSDK.jar b/Unity4.7OneSignalExample/Assets/Plugins/Android/OneSignal/libs/OneSignalSDK.jar index e1daf22e4..e33fd031d 100644 Binary files a/Unity4.7OneSignalExample/Assets/Plugins/Android/OneSignal/libs/OneSignalSDK.jar and b/Unity4.7OneSignalExample/Assets/Plugins/Android/OneSignal/libs/OneSignalSDK.jar differ diff --git a/Unity4.7OneSignalExample/Assets/Plugins/OneSignal/OneSignal.cs b/Unity4.7OneSignalExample/Assets/Plugins/OneSignal/OneSignal.cs index 686bf2ef8..1f3b94c3f 100644 --- a/Unity4.7OneSignalExample/Assets/Plugins/OneSignal/OneSignal.cs +++ b/Unity4.7OneSignalExample/Assets/Plugins/OneSignal/OneSignal.cs @@ -220,6 +220,12 @@ public static void EnableNotificationsWhenActive(bool enable) { ((OneSignalAndroid)oneSignalPlatform).EnableNotificationsWhenActive(enable); #endif } + + public static void ClearOneSignalNotifications() { + #if ANDROID_ONLY + ((OneSignalAndroid)oneSignalPlatform).ClearOneSignalNotifications(); + #endif + } public static void EnableInAppAlertNotification(bool enable) { #if ONESIGNAL_PLATFORM diff --git a/Unity4.7OneSignalExample/Assets/Plugins/OneSignal/OneSignalAndroid.cs b/Unity4.7OneSignalExample/Assets/Plugins/OneSignal/OneSignalAndroid.cs index 8b967ef8f..60f646c46 100644 --- a/Unity4.7OneSignalExample/Assets/Plugins/OneSignal/OneSignalAndroid.cs +++ b/Unity4.7OneSignalExample/Assets/Plugins/OneSignal/OneSignalAndroid.cs @@ -108,5 +108,9 @@ public void SetEmail(string email) { public void PromptLocation() { mOneSignal.Call("promptLocation"); } + + public void ClearOneSignalNotifications() { + mOneSignal.Call("clearOneSignalNotifications"); + } } #endif \ No newline at end of file diff --git a/Unity4.7OneSignalExample/Assets/Plugins/OneSignal/VERSION b/Unity4.7OneSignalExample/Assets/Plugins/OneSignal/VERSION index 795d87001..4761f0e9d 100644 --- a/Unity4.7OneSignalExample/Assets/Plugins/OneSignal/VERSION +++ b/Unity4.7OneSignalExample/Assets/Plugins/OneSignal/VERSION @@ -1 +1 @@ -1.15.1 \ No newline at end of file +1.15.2 \ No newline at end of file diff --git a/Unity4.7OneSignalSDK.unitypackage b/Unity4.7OneSignalSDK.unitypackage index 122e9cfb0..e50d13c7a 100644 Binary files a/Unity4.7OneSignalSDK.unitypackage and b/Unity4.7OneSignalSDK.unitypackage differ diff --git a/Unity5OneSignalExample/Assets/OneSignal/Platforms/Android/onesignal-unity.aar b/Unity5OneSignalExample/Assets/OneSignal/Platforms/Android/onesignal-unity.aar index 8d4c50a94..73aad1fb9 100644 Binary files a/Unity5OneSignalExample/Assets/OneSignal/Platforms/Android/onesignal-unity.aar and b/Unity5OneSignalExample/Assets/OneSignal/Platforms/Android/onesignal-unity.aar differ diff --git a/Unity5OneSignalExample/Assets/OneSignal/VERSION b/Unity5OneSignalExample/Assets/OneSignal/VERSION index 795d87001..4761f0e9d 100644 --- a/Unity5OneSignalExample/Assets/OneSignal/VERSION +++ b/Unity5OneSignalExample/Assets/OneSignal/VERSION @@ -1 +1 @@ -1.15.1 \ No newline at end of file +1.15.2 \ No newline at end of file diff --git a/Unity5OneSignalExample/Assets/OneSignal/src/OneSignal.cs b/Unity5OneSignalExample/Assets/OneSignal/src/OneSignal.cs index 686bf2ef8..1f3b94c3f 100644 --- a/Unity5OneSignalExample/Assets/OneSignal/src/OneSignal.cs +++ b/Unity5OneSignalExample/Assets/OneSignal/src/OneSignal.cs @@ -220,6 +220,12 @@ public static void EnableNotificationsWhenActive(bool enable) { ((OneSignalAndroid)oneSignalPlatform).EnableNotificationsWhenActive(enable); #endif } + + public static void ClearOneSignalNotifications() { + #if ANDROID_ONLY + ((OneSignalAndroid)oneSignalPlatform).ClearOneSignalNotifications(); + #endif + } public static void EnableInAppAlertNotification(bool enable) { #if ONESIGNAL_PLATFORM diff --git a/Unity5OneSignalExample/Assets/OneSignal/src/OneSignalAndroid.cs b/Unity5OneSignalExample/Assets/OneSignal/src/OneSignalAndroid.cs index 8b967ef8f..60f646c46 100644 --- a/Unity5OneSignalExample/Assets/OneSignal/src/OneSignalAndroid.cs +++ b/Unity5OneSignalExample/Assets/OneSignal/src/OneSignalAndroid.cs @@ -108,5 +108,9 @@ public void SetEmail(string email) { public void PromptLocation() { mOneSignal.Call("promptLocation"); } + + public void ClearOneSignalNotifications() { + mOneSignal.Call("clearOneSignalNotifications"); + } } #endif \ No newline at end of file diff --git a/Unity5OneSignalSDK.unitypackage b/Unity5OneSignalSDK.unitypackage index 8b25e8d92..b2ead7237 100644 Binary files a/Unity5OneSignalSDK.unitypackage and b/Unity5OneSignalSDK.unitypackage differ