开发者

Push notifications dialogue

开发者 https://www.devze.com 2022-12-13 14:51 出处:网络
Is there any way I could make the \"Would you like to enable push notifications...\" dialogue not to come up upon first time application launch but rather on some other action in the application?

Is there any way I could make the "Would you like to enable push notifications..." dialogue not to come up upon first time application launch but rather on some other action in the application?

Regardz, Mladen开发者_如何学C


The dialog should not appear until you call the method registerForRemoteNotificationTypes. I assume you're calling it in appDidFinishLoading at the moment? Just move it to the part of your application that is relevant to Push Notifications.

It's a similar situation with CoreLocation. It can confuse the user if you request the users location before your application has indicated why it needs it.

0

精彩评论

暂无评论...
验证码 换一张
取 消