Page 1 of 1

Push Notification Setup In Google API

Posted: Thu Nov 21, 2013 9:58 pm
by Mark Harding

App set up and set start page set to test notify page.
Build APK and Test on Device:

Initialise: DONE
Register: DONE

Can see new device in Appery push notify screen.

Problem: Sending Push Notification message doesn't fire on device.

I think this is to do with the Google Simple API setup which seems to ask for a domain name your referring from:

Key for browser apps (with referers)

API key: AIzaSyBbjdbPzsga7-a_-qoKjwoM3eeOXuhqvc0
Referers: www.granfondoguide.com

Basically an Android device doesn't have a referring domain name, or is the domain name : https://appery.io where your pushing the message from to Google's API?


Push Notification Setup In Google API

Posted: Fri Nov 22, 2013 1:02 am
by Alena Prykhodko

Hello Mark,

Sorry for delay. What device and its OS do you have for testing?
Also please share your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and tell us its name.


Push Notification Setup In Google API

Posted: Fri Nov 22, 2013 10:15 am
by Mark Harding

Hi Alena,

Device is a Nexus 7, Android OS v4.3. It registers as a device in the App fine. The problem seems to be the integration of the App with Google Android Cloud services. When sending a notification message from the Appery App - cloud messaging for Android / Google API doesn't register any traffic or request?

I set up the simple API in Google - but I'm not sure if this is correct:

Image

I have shared app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a called Gran Fondo Guide.


Push Notification Setup In Google API

Posted: Fri Nov 22, 2013 1:15 pm
by Maryna Brodina

Hello! Thank you for sharing. We're working on it.


Push Notification Setup In Google API

Posted: Fri Nov 22, 2013 1:40 pm
by Mark Harding

Thanks Maryna,

Ok thanks - let me know if you any info on the Google API Key I set up as per the tutorial.

Regards,
Mark


Push Notification Setup In Google API

Posted: Fri Nov 22, 2013 2:14 pm
by Mark Harding

Got it working - the way you register an app in the new Google Cloud console has changed. I registered a new App, chose GCM using browser key (any).

Image


Push Notification Setup In Google API

Posted: Fri Nov 22, 2013 2:27 pm
by Maryna Brodina

Ok, thank you for update!