Hi, I just released an update to my application with the addition of push notifications. I was worried that it would not work properly, so I checked a lot of tests. First you need only a development certificate, and then a production certificate using adhoc. Both finished work, and I was pleased when adhoc worked.
In any case, the update lasted about 8 hours, and for some reason the push did not work. I checked with my friend and realized that the user was not asked if he wants to receive push notifications from my application. This means that the token is sent to my server and it appears as (null). I have no idea why this is happening. When it goes into the device settings β notifications ---> my application does not appear in any of the lists (receiving push notifications or not receiving).
This is the code of my delegate that should trigger the request:
[[UIApplication sharedApplication] registerForRemoteNotificationTypes: (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];
If anyone knows why this is happening, entry will be greatly appreciated. Thanks!
source share