Apple Push Notification Registration & Device Token Receive clarification?

前端 未结 2 447
灰色年华
灰色年华 2020-12-18 06:30

I am working on an iPhone app with Apple Push Notification integration. I have some doubts on this.

  1. If the user clicked \"Dont Allow\" button

2条回答
  •  渐次进展
    2020-12-18 07:10

    I have tested with Xcode 6.1, ios8.1.2. Currently the device token will be generated only in two cases

    1. Apple's default consent with "Ok" option
    2. After "Dont allow", manual change in Setting->Notifications->app->AllowNotification(On)

    By declining first time with apple's consent, will not generate device token, till manually change the value in settings page.

提交回复
热议问题