Get device token for push notifications after app was deleted

后端 未结 2 1538
灰色年华
灰色年华 2020-12-30 13:06

When you install an app for the first time and want to register for Push notifications, the app asks you whether you want to receive alerts or not. This is being permanently

2条回答
  •  心在旅途
    2020-12-30 13:17

    call registerForRemoteNotificationTypes on every launch of your application so your didRegisterForRemoteNotificationsWithDeviceToken method get call and you will get your device token every time from APNS. And device token for your application is same on every launch.

提交回复
热议问题