The community forums are in BETA and closed to the public.

Problem with push notifications for ios cordova application

Hello!

I'm following http://www.pubnub.com/blog/sending-ios-push-notifications-via-apns-javascript-using-apns-phonegap/ tutorial to test out pubnub push services for ios app generated with cordova.

My problem is that everything seems to be set up properly but still push notifications are not received by mobile device.

I went through suggestions at http://www.pubnub.com/knowledge-base/discussion/261/are-push-notifications-always-received-by-a-mobile-device. Everything is fine there except next questions:

When doing this: Verify that the channel is registered to the device using this query: http://pubsub.pubnub.com/v2/push/sub-key/[sub-key]/devices/[device] When I use my data I'm getting response []. Does it mean that there is an issue?

Another thing - when I activate debugging I'm getting: "Devices found for ['apns'] push notification" "Invalid MPNS notification format" In my case I'm sending only apns. Could this complain ("Invalid MPNS notification format") case an issue?

With best regards, Aleh Autushka

Made it working. Testing with ruby gem pushmeup helped to figure out the problem I had with my certificate. You can check how to set up testing here: https://github.com/phonegap-build/PushPlugin#automatic_installation (Testing APNS and GCM notifications)

Excellent! By the way, if you are not including a particular gateway (MPNS for example), then you can ignore the "Invalid MPNS notification format" messages. This just means that it didn't find the pn_mpns key or it did and it was not valid format (then you can pay attention to it).


Comments to this discussion are now closed!