how to activate the ios notification settings programmatically?

后端 未结 3 1374
梦如初夏
梦如初夏 2020-12-21 11:12

My app registers for the notifications like this :

[[UIApplication sharedApplication] registerForRemoteNotificationTypes:UIRemoteNotificationTypeBadge | UIR         


        
3条回答
  •  既然无缘
    2020-12-21 11:39

    Try changing your device date to 1 or 2 days after current date. Sometimes it is stored in keychain of device and stored for 1 or 2 days. It worked for me in case of calendar and location permissions.

提交回复
热议问题