Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

When I am testing push notifications, how do I know they are only going to me?

I am just starting to learn more about setting up push notifications. I used this tutorial to set them up but I have gone though all of the Appery.io docs in search of more answers.
https://devcenter.appery.io/tutorials...

So using that tutorial, it has me sending out a notification. Who does that go to?? Just me if I install the new version of the app (with the new push configuration) on my phone? Or, everyone has it? On the version that is out, I had the box ticked that enabled push notifications but nothing was configured in the settings.

I tried to send one out but there was an error. What does invalid token mean?? In the tutorial, I never registered any devices, nor have I needed to for any of the other aspects of my app.

Here is a screenshot.

Image

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

When I am testing push notifications, how do I know they are only going to me?

After installing the app on my device, and trying to send another notification, it says it sent, but I haven't gotten one. Image

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

When I am testing push notifications, how do I know they are only going to me?

Hello Ellen,

You should configure Push first https://devcenter.appery.io/tutorials...
Push goes to all devices where app is installed. You can send push to specific device, please read more here https://devcenter.appery.io/documenta...

About error handling you can check here
https://devcenter.appery.io/documenta...

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

When I am testing push notifications, how do I know they are only going to me?

That didn't really help me. As I said before, I have already gone through all of the push docs but I still had questions.

I have already gone through the doc that had the errors in it but it didn't have the error that I have. I also tried going to the links for Android and iOS but those links no longer bring a person to the correct page.

I made an additional comment/reply that mentioned that I tried another notification. This time it said it sent, but I never got one.

Help

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

When I am testing push notifications, how do I know they are only going to me?

Just wondering of anyone has had time to look at this?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

When I am testing push notifications, how do I know they are only going to me?

Hi Ellen -

Our Push documentation explains the general principles and our platform specifics and only a few errors just for an example for more details you should refer to an official documentations for a specific platform due to a different mechanism of push registration and error handling.

For example here you can find Google information about push error response codes:
https://developers.google.com/cloud-m...

When you send a push message to your device you are using a predefined platform Push REST services or form your own JSON message payload and after that http request is being initiated (https://developers.google.com/cloud-m...) and sends this payload to a GCM or APN server which delivers it on your device. This means that in your second case your push message was sent to a GCM/APN server but never reaches your device, there could be a plenty of reasons why - for example due to connection issues on the device or push messaging was turned off on the device is just to mention a few.

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

When I am testing push notifications, how do I know they are only going to me?

My device had a good network connection and I received a popup to allow notifications and I did so neither of those solve the problem.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

When I am testing push notifications, how do I know they are only going to me?

Check your APIkey that you are using in your Push settings, here how to check: https://developers.google.com/cloud-m...

John de Quarius
Posts: 0
Joined: Fri Dec 11, 2015 7:16 pm

When I am testing push notifications, how do I know they are only going to me?

Ellen,

I ran into the same issue. If you've followed the documentation here in Appery and you're sure that you did everything and it doesn't work still. I suggest then you give it some time to sit as Google is probably still evaluating your token or the token you received from google is not fully activated yet. There are a lot of things happening in google server and authentication. Mine started working after a day of waiting when I believed that I did everything.

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

When I am testing push notifications, how do I know they are only going to me?

My APIkey is correct. As far as what John said, I have waited a while and it still doesn't work. My testing device is an iPhone anyway so I don't think this was necessarily the case.

Return to “Issues”