Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / What is needed for Pushnotifications

Author
Message
janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 24th May 2017 23:31 Edited at: 25th May 2017 22:09
I answered a thread, but I actually never got it working and I like knowing what I'm talking about

So I want to receive a Notification:
I made an API key in the API manager.
I have a Server which is running this php script :

Then I extract the token from:


Now I try to send a notification using the token via the php script.
Do I need to publish the App via Google play or should it work with the broadcasting feature also ?

Using AGKv2 Tier1
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 26th May 2017 15:51
If I remember correctly then you will need to export the app to an APK to get the correct package name, but it's been a while since I dealt with push notifications.
janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 26th May 2017 17:38 Edited at: 26th May 2017 19:09
Where do I need the package name ?
I know of project number needed for SetPushNotificationKeys(key1,key2), the token to find the right device and the API key ofc.
Or must I register the App under the same name my project is called... or something... ?

Using AGKv2 Tier1
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 5th Jun 2017 14:26
When you export the app as an APK it will ask for the package name you want to use for the app, this should match the one you used in the Google Play application console, where you got the API key from.

Login to post a reply

Server time is: 2024-04-19 21:37:57
Your offset time is: 2024-04-19 21:37:57