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??