<Why is my callback when the notification permissi...
# stackoverflow
r
Why is my callback when the notification permission is granted not being called? I am trying to add notifications to my app. What I am trying to achieve is when the user clicks the "add task" button, they are prompted to enable notifications if the permission has not already been granted. If permission is then granted, my logic to schedule a notification is called. If not, the task is still added and I just don't schedule the notification. If the permission has already been granted, the notification is scheduled. I find the documentation around this a little confusing but...