About clearing Unity's push notifications from Android

Asked 2 years ago, Updated 2 years ago, 94 views

I'm thinking of using Prime31 for Unity push notifications.
The notification itself is
iOS:NotificationServices.ScheduleLocalNotification()
Android: EtceteraAndroid.scheduleNotification()
It is possible in
The way to cancel the existing push notification when you return to the app does not work on Android.
iOS works with NotificationServices.CancelAllLocalNotifications().
EtceteraAndroid.cancelAllNotifications() on Android does not seem to work.

If anyone is clearing push notifications on Android,
Please let me know how you are doing it.

android unity3d

2022-09-30 20:55

1 Answers


as stated in the prime31 formula. https://prime31.com/docs#androidEtc

Note: Android notifications have had many bugs over the variable Android versions. If you intend to cancel notifications some Android versions will not be able to cancel all notifications when you call cancelAll Notifications. It is recommended to use the cancel notification notification

EtceteraAndroid.cancelAllNotifications() may not work
EtceteraAndroid.cancelNotification() for individually registered notifications
I had no choice but to erase it.

I suffered from the same symptoms here, and eventually
EtceteraAndroid.cancelNotification() and
We are dealing with it by calling both EtceteraAndroid.cancelAllNotifications().


2022-09-30 20:55

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.