Posts

Post not yet marked as solved
0 Replies
1.1k Views
The call to get device token no longer works after 13.1 update (May not be 13.1 but this is when I noticed it)Odd thing is that I no longer have the on off button for push notifications as per screen shot belowUsed to have a on/off and the documentation says it should have on so no way to register with the notification serverOn my IPhone XS Max the event didRegisterForRemoteNotificationsWithDeviceToken triggers but gets a bad token that triggers a EXC_BAD_ACCESS exceptionOn my IPhone 8 Plus the event never triggers so I don't have a device token to useI have the following code in appdelegate UNUserNotificationCenter.current().requestAuthorization(options:[.badge, .alert, .sound]){ (granted, error) in } application.registerForRemoteNotifications()Also have registered for event// Called when APNs has assigned the device a unique token func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) { }
Posted
by itaylorm.
Last updated
.