Removing all pending local notifications does not work if the user removed permissions
I want to remove all pending local notifications if the user removed notification permissions. Therefore, I wrote a function to check if permissions are given. If the permissions are given, schedule a random notification. If not, remove all pending notifications.
Removing all pending local notifications does not work if the user removed permissions
I want to remove all pending local notifications if the user removed notification permissions. Therefore, I wrote a function to check if permissions are given. If the permissions are given, schedule a random notification. If not, remove all pending notifications.