Diego,
thanks for your answer. I thought on using the InstanceID service, however initially i have discarded this option because the
docs read:
Note: verifying app authenticity is
available only for apps distributed by Google Play.
However the most common case is that your debug app is not published on Google Play, so the validation mechanism would fail. Another drawback i see is that i can't verify old GCM tokens (those that aren't instance ids). I've tried out both types of tokens with InstanceID service:
1. when token comes from a debug application (not published on Google Play) i get
{"error":"No information found about this instance id."}2. when token has the old registrationId format i get an HTTP 400 error
Is there any workaround to validate GCM tokens?
Regards