Kevin Preston
Posts: 0
Joined: Wed Oct 09, 2013 12:18 pm

Problem with push

Shared!

Kevin Preston
Posts: 0
Joined: Wed Oct 09, 2013 12:18 pm

Problem with push

You will notice that the Sender ID and API Key have gone again!

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Problem with push

Hi Kevin,

Did you do all the steps described here?
http://docs.appery.io/tutorials/sendi...
Have you enabled Google Cloud Messaging for Android?

Kevin Preston
Posts: 0
Joined: Wed Oct 09, 2013 12:18 pm

Problem with push

Yes, please see earlier questions and answers

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Problem with push

Hello! We entered test values (testID and testKey) for Sender ID and API Key fields. Could you please check if you see those values? Try to enter your values instead test one, save the project and try to send notification again.

Kevin Preston
Posts: 0
Joined: Wed Oct 09, 2013 12:18 pm

Problem with push

Yes I saw your test values. I entered my values, saved the project, built it and installed on my phone. When I run it I get 'initialise - done', 'register - success' but still don't receive any pushes

Kevin Preston
Posts: 0
Joined: Wed Oct 09, 2013 12:18 pm

Problem with push

I have just closed the project and reopened it, my keys have gone and your test ones are back!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Problem with push

That's really strange... Could you try to create new project (just to test these fields), enter any values there, save, close and open project again.
By the way you can send us your Sender ID and API Key at a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a, we'll set them on our side so you can continue testing while we're looking into this issue.

Kevin Preston
Posts: 0
Joined: Wed Oct 09, 2013 12:18 pm

Problem with push

Well I think I've found the problem - if you type into the Sender Id and API Key fields the values will be saved. If you paste into them then they are not saved. Given the length of the API Key I suspect most people will 'copy and paste' and then find they are not saved. I pasted the values in and then added a character at the end from the keyboard which I then deleted, the values were then saved OK, presumably you are using the keypress event to trigger the save function. What's more when I tested the newly built project the push notification arrived!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Problem with push

Glad it's working now! Thank you for information! We'll research this problem more.

Return to “Issues”