Device Token not received when registering for remote notifications in Swift

前端 未结 8 2073
太阳男子
太阳男子 2021-02-04 10:42

I somehow can not receive the device token when registering for remote notifications. I get the modal saying \"Do you want to allow App X to be able to send you notificaitons\",

8条回答
  •  梦毁少年i
    2021-02-04 11:15

    If you get this message, then you have already registered and the method will get called only when the application gets launched or the token gets changed. It has slight chance that the token will be updated.

    Probably, you can try to delete the application from you test device and try to clear it from Xcode. And do it over again.

提交回复
热议问题