Page 1 of 1

Notification to devices

Posted: Wed Feb 18, 2015 3:28 am
by Bruce Stuart

Happy Tuesday night - Wednesday in some time zones,

I have an app where I have:

  1. Registered the app with google and apple to get notification keys.

  2. Followed the docs to set up the notification services correctly - and put the required keys etc. into my Appery project.

  3. Built a binary today.

  4. Loaded the binary to 3 devices at about 5pm MST USA.

  5. Saw the devices load into the devices table correctly when they logged in.

  6. Attempted using the push notification console - to send notifications to the devices. On my immediate push (results still pending on my scheduled push) - all 3 push notifications failed as shown below:

    Image

    Question - how do I debug this problem? What is it indicative of??

    Thanks in advance for your help!
    Bruce


Notification to devices

Posted: Wed Feb 18, 2015 7:56 am
by Evgene Karachevtsev

Bruce,

Usually this happens when you register the device into test mode (sandbox), and then send a push notification with flag production: true, or Vice versa.
From the point of view of apns these are two different environments for sending push notifications, and so the token obtained during registration of the device on one of them, the other is considered invalid.


Notification to devices

Posted: Wed Feb 18, 2015 5:21 pm
by Bruce Stuart

Evgene,

so - If I created my test certificate with apple and then built my appery project with the same certificate - and then have production turned off in my environment settings - and then send a message - what should I do differently?

Set everything to production and rebuild or ?

Bruce


Notification to devices

Posted: Thu Feb 19, 2015 10:53 am
by Evgene Karachevtsev

Bruce,

If you have production certificate probably the best way will be to rebuild your app with it.


Notification to devices

Posted: Fri Feb 20, 2015 12:13 am
by Bruce Stuart

Evgene,

Thanks - doing that now.... appreciate the guidance.

Best,

Bruce