Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
312 views
in Technique[技术] by (71.8m points)

iphone - How to clear preference iOS push notifications for my application?

Hello When the application is installed, it asks the user for permission to send push notifications. I'm testing my application. But after removing it from the device and then install it no longer asks for permission. How do I remove these settings so that it once again asked for permission?

I need it to test server push notifications.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Please try using UIApplication's - (void)unregisterForRemoteNotifications method.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...