Last Updated: February 25, 2016
·
733
· camsoft

Push notifications not registering?

So you've added

[[UIApplication sharedApplication] registerForRemoteNotificationTypes:allowedNotifications];

to your app delegate's application:didFinishLaunchingWithOptions: method and you've built the app but it's not asking the user if they want to enable push notifications?

Well this is a common mistake a lot of new iOS programmers make including me.

The issue is actually a simple one, you need to make sure that you create a unique provisioning profile for the app that has Push Notifications enabled. You can do this at Apple's iOS Provisioning Portal.

The default Team iOS profile generated by Xcode does not support push notifications because it uses a wildcard bundle identifier.