Cancel message onesignal schedule time

I have a task app that, when creating a task, schedules the push notification for the date, but if the user edits or deletes the task, they would also like to delete this push schedule, does anyone know how to do this?

There is onesignal API available for cancelling the scheduled or ongoing notification.

Use web component to perform a DELETE request.

For task like apps, it is recommended to schedule offline notification instead of using push notifications.
You can use alarm manager extension for scheduling notifications, they don’t require internet and can be cancelled easily.

there are many alternatives available too.

1 Like