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 below
Used to have a on/off and the documentation says it should have on so no way to register with the notification server
On my IPhone XS Max the event didRegisterForRemoteNotificationsWithDeviceToken triggers but gets a bad token that triggers a EXC_BAD_ACCESS exception
On my IPhone 8 Plus the event never triggers so I don't have a device token to use
I 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) {
}