When is didRegisterForRemoteNotificationsWithDeviceToken called?

前端 未结 3 2111
日久生厌
日久生厌 2021-01-03 18:30

There are a lot of questions about didRegisterForRemoteNotificationsWithDeviceToken but they all sidestep a very direct question which I cannot seem to find an exact answer

3条回答
  •  甜味超标
    2021-01-03 18:51

    There can be many reasons, check some reasons

    • If you run the app in the simulator, the application:didFailToRegisterForRemoteNotificationsWithError: method will be called as push notifications are not supported in the simulator.

    • Check your deice internet connection if not connect it.

    For more info check Link

提交回复
热议问题