How to Rewrite Permissions for Push Notifications in iOS

Asked 2 years ago, Updated 2 years ago, 39 views

Nice to meet you.

I'm currently creating an iOS app, but I'm having trouble around notifications.

The things I want to do are as follows.

·Rewrite notification permission when the value of the UISwitch in ViewController changes
ex: If authorization is true, then if UISwitch is false, authorization is false too

I'm wondering if I can get the status of the notification but overwrite it.

I'm in trouble because I can't even skip the notification settings screen of the app from iOS11 with the URL schema.

Please let me know.It's already stackoverflow...

I would appreciate it if you could let me know if there is any other good way.

swift ios

2022-09-30 11:56

1 Answers

I can't.Whether or not to receive push notifications is controlled by the user, so the app cannot change what the user refuses.If you can do that, the authorization mechanism will be meaningless.


2022-09-30 11:56

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.