Apps GCM with online server testing

HeavensSentSword

Well-Known Member
i am working at trying to get a simple GCM push notification to my test app.
i am basically using the Googles tutorial and got the whole app set up except for the
sendRegistrationToServer(String token) method yet. I just don't know what to put in this me. I found this tutorial but I dont understand the sendRegistarionToServer method implementation.
http://inducesmile.com/android/andr...-gcm-php-mysql-and-okhttp-square-open-source/
I set up my project just like the one in this tutorial which pretty much followed the Google one but implemented the sendRegistarionToServer mehtod.

I want to use this online test server
http://www.androidbegin.com/tutorial/gcm.html

Thank you for any help with this.
 

HeavensSentSword

Well-Known Member
Thread starter
Yes I have both and the config file in the app as well.
Do I not have to use the sendReg method to get a DeviceID for the phone?
Should I instead of using the config google-service file just hard code the values into the app?
 

HeavensSentSword

Well-Known Member
Thread starter
Ok it just started to work............
I don't know why I haven't made any changes to the code.
I think it may have been a setting with the emulator that I was using. I just deleted that one which was a Nexus 5 and made a new one and it started to work. Alls well that ends well!
 

HeavensSentSword

Well-Known Member
Thread starter
I really hate when that happens because there is no real fix. So I am hesitant using the code in a bigger project. More testing!
 
Top