plugins icon indicating copy to clipboard operation
plugins copied to clipboard

[@nativescript/local-notifications] getScheduledIds() returns ids of notifications that have already been published on Android

Open enich-dev opened this issue 2 years ago • 3 comments

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().

enich-dev avatar Oct 04 '22 18:10 enich-dev

This issue seems to have been fixed in the old plugin https://github.com/EddyVerbruggen/nativescript-local-notifications/issues/77

enich-dev avatar Oct 10 '22 22:10 enich-dev

@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?

CatchABus avatar Nov 18 '22 15:11 CatchABus

@enich-dev on Android there is also the option ongoing: boolean. If this set, the scheduled notification will not be removed.

insytes avatar Jun 25 '24 17:06 insytes