Notification Handles Permissions

Can we handle alert alert buttons? I have added an image for this warning. This warning appears when we install the application for the first time on the device. If the user clicks "Don't Allow", the notification feature will be disabled for that app.

So, if the user clicks on the "Don't Allow" button, I want to display a warning and inform the user that they can re-enable it from the settings. To do this, I need to handle the notification alert button (see attached image).

If anyone knows the answer to this question please answer.


enter image description here


source to share

1 answer

If push notifications were denied by the user by the delegate method:

- (void)application:(UIApplication *)app didFailToRegisterForRemoteNotificationsWithError:(NSError *)err {  }


... This should be the place to display your warning.

Try it!




All Articles