plugins
plugins copied to clipboard
[@nativescript/local-notifications] getScheduledIds() returns ids of notifications that have already been published on Android
On Android if you schedule a notification and wait to receive the notification, the notification shows as expected. If you call getScheduledIds() after, that notification ID is still returned in the array and the array continues to grow infinitely unless you explicitly call cancel() or cancelAll().
iOS works as you would expect. Once you receive a notification, that ID no longer returns after calling getScheduledIds().
This issue seems to have been fixed in the old plugin https://github.com/EddyVerbruggen/nativescript-local-notifications/issues/77
@enich-dev Have you got any app sample to test it with? Going back to unmaintained plugins is always risky so we should try and solve it here.
Also, have you perhaps set interval
property in your notification schema?
@enich-dev on Android there is also the option ongoing: boolean
. If this set, the scheduled notification will not be removed.