Search code examples
iosiphoneobjective-cpush-notificationapple-push-notifications

Not receiving any push notification in iPhone


I have made a sample PushTest app for Push Notification using this tutorial.

And using above tutorial I got the message that 'PushTest' would like to send you Push Notification (exactly once) and after that I delete the app from iPhone, restart the iPhone but unable to get the same message again.

I have run the script sample.php (updating the changes suggested) and got the message 'connected to APNS' & 'your message send'.

But I didn't receive any single push notification.

Please guide me where I am wrong?
Or what shod I try for push notification receive.


Solution

  • You will not receive Push only in 2 cases

    1.) If your application is in foreground.

    2.) you device token is not valid for receiving the push notification please check both the condition if you still do not receive push please let me know. Thanks