- Home /
didRegisterForRemoteNotificationsWithDeviceToken never gets called!
I am trying to get Push Notifications to work in Unity3D on iOS for days now. I have double and tripple checked that the setup is correct: Provisioning Profile, Capabilities, everything is correct.
Deployment target is 9.1.
I have setup a test project with the exact same setup to test the PN with the device and it works everytime.
This is the only code I added to the test project (same as in the Unity-project):
UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeAlert | UIUserNotificationTypeBadge | UIUserNotificationTypeSound) categories:nil];
[application registerUserNotificationSettings:settings];
[application registerForRemoteNotifications];
I am guessing, something in the project setup or initialization code from the Unity side must mess up the PN registration.
Does anybody have ideas where to look for suspects??
Your answer
![](https://koobas.hobune.stream/wayback/20220612130237im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Time.deltaTime not running in background (for local notification) 2 Answers
Device Token requirement in push notification 2 Answers
Remove Remote Notification Bug from Apple Submission 0 Answers
How to distinguish Firebase Push Notification received in Background and when App open 0 Answers
How to delete notifications from APNS 0 Answers