Skip to content

Commit

Permalink
Added ClearOneSignalNotifications for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
jkasten2 committed Jul 11, 2016
1 parent cade748 commit a570f16
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 2 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,9 @@ public void SetEmail(string email) {
public void PromptLocation() {
mOneSignal.Call("promptLocation");
}

public void ClearOneSignalNotifications() {
mOneSignal.Call("clearOneSignalNotifications");
}
}
#endif
2 changes: 1 addition & 1 deletion Unity4.7OneSignalExample/Assets/Plugins/OneSignal/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.15.1
1.15.2
Binary file modified Unity4.7OneSignalSDK.unitypackage
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion Unity5OneSignalExample/Assets/OneSignal/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.15.1
1.15.2
6 changes: 6 additions & 0 deletions Unity5OneSignalExample/Assets/OneSignal/src/OneSignal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,9 @@ public void SetEmail(string email) {
public void PromptLocation() {
mOneSignal.Call("promptLocation");
}

public void ClearOneSignalNotifications() {
mOneSignal.Call("clearOneSignalNotifications");
}
}
#endif
Binary file modified Unity5OneSignalSDK.unitypackage
Binary file not shown.

0 comments on commit a570f16

Please sign in to comment.