I implemented GCM server like it said in the guide and it worked well. I did all the steps and when I sent an http request to the GCM server it returned a success response.
However, every once in a while it gives me a NotRegistered response which makes me get a new registeration ID.
I should say that the the app is still under development but I don't see why small changes in the code should effect the registration and I'm working on a GenyMotion emulator if it matters.
In the guide it Says:
If it is NotRegistered, you should remove the registration ID from your server database because the application was uninstalled from the device or it does not have a broadcast receiver configured to receive com.google.android.c2dm.intent.RECEIVE intents.
But I'm not sure what to get from that. Is turning off the emulator or changing the code counts as uninstalling the application?
EDIT:
It's not about changing the code or reseting the emulator. I checked a certain registration id and it went fine. After a few minutes I checked it again and got "NotRegistered". Anyone?..