Push notifications not working after transferring data from old iPhone to new

I transferred data from iPhone 8 to iPhone 12 mini, using the iTunes Backup / Device to device migration. I wasn't getting push notifications for one app that I was already installed on my old iPhone. I checked the push notification settings for that app, and everything is enabled as before. I toggled the settings to on/off but it did not help. I tried to log out and log back in to that app, but that also did not fix the issue. Then I deleted and reinstalled the app, and then at the time of login, the app asked me whether I want to allow push notifications. I clicked Allow, and now notifications for that app have started working. Is it common behaviour? If not how to handle this?

Posted on Feb 3, 2022 6:31 AM

Reply
Question marked as Top-ranking reply

Posted on Feb 4, 2022 6:39 AM

Hey SageEllefson29, I got the problem. Turns out that we were not registering device push token every time app is launched. Because of which on new device new push token was never registered ultimately causing failure in delivering push notification. So catch here is every time app is launched call method 'UIApplication.shared.registerForRemoteNotifications()'.

Thank you for your help.

Similar questions

5 replies
Question marked as Top-ranking reply

Feb 4, 2022 6:39 AM in response to SageEllefson29

Hey SageEllefson29, I got the problem. Turns out that we were not registering device push token every time app is launched. Because of which on new device new push token was never registered ultimately causing failure in delivering push notification. So catch here is every time app is launched call method 'UIApplication.shared.registerForRemoteNotifications()'.

Thank you for your help.

Feb 4, 2022 2:16 AM in response to SageEllefson29

Hey SageEllefson29!! Thanks for quick reply. I don't think I've encountered a bug when restoring from a backup. Because this happens every single time I try to transfer data from old iPhone to new iPhone. Also as per your suggestion I tried to restart phone after migration but push didn't work for my app. I am using Braze third party service in order to send notifications to users. Do you have any further suggestions? Thanks!!


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Push notifications not working after transferring data from old iPhone to new

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.