Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

Notification to devices

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Notification to devices

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.

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

Notification to devices

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Notification to devices

Bruce,

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

Bruce Stuart
Posts: 0
Joined: Fri Oct 24, 2014 4:42 am

Notification to devices

Evgene,

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

Best,

Bruce

Return to “Issues”