Skip to content

Commit

Permalink
fix: expo users reported app crash on didFailToRegisterForRemoteNotif…
Browse files Browse the repository at this point in the history
…icationsWithError (#575)
  • Loading branch information
ami-aman authored Mar 5, 2024
1 parent 873eb43 commit ac70292
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ extension MessagingPushAPN {
// Swizzled method for `didFailToRegisterForRemoteNotificationsWithError'
@objc
func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) {
messagingPush.deleteDeviceToken()
MessagingPushAPN.shared.deleteDeviceToken()
}
}

0 comments on commit ac70292

Please sign in to comment.