[Aerogear-users] Trouble sending Android Push Notifications

Sebastien Blanc scm.blanc at gmail.com
Thu Nov 26 11:57:16 EST 2015

On Thu, Nov 26, 2015 at 5:35 PM, Rob Willett <rob.aerogear at robertwillett.com
> wrote:

> Sebastien,
> Well we have created and deleted variants and various Google Projects
> all with the result. No notification but no errors.
> We have validated the server API key using another curl script
> We have managed to write a curl script that almost works but not quite
> :) We get a MismatchSenderId error.
> Grepping for this on the intertubes shows a lot of Stackoverflow
> nonsense and some stuff from Google.
> What we are now wondering if the device token that we are using, that
> reported by the AeroGear UPS console is actually out of date.
> When we delete the variant we create a new variant and register with
> that. The device token created and reported by the UPS console is the
> same as the old variant. We are wondering if this is incorrect and it
> should be a new device token.

The device token is not generated by UPS but by the GCM server who pass it
to the device and the device pass it to UPS when it registers. So even with
a new variant, the device will still returns its allocated device token,
I'm not expert in gcm tokens, I hope Daniel will be able to help more on
this. Maybe uninstalling and wiping all the data of the app will force gcm
to deliver a new and "fresh" token ?

We’re trying to delete it but you
> can’t seem to delete it from the console and trying to delete it from
> our app calls the Javascript error function.
> We’ll keep trying, but our other Android phone packed up yesterday and
> we only one left. We’re pulling out an old Samsung S3 on the off
> chance it might work :)
> Any thoughts on invalid device tokens?
We have a crone job running on UPS that cleans up the invalid tokens.

> Rob
> >> I can’t believe that we have missed a simple configuration issue on
> >> the
> >> UnifiedPush server.
> >>
> > Yes, strange, looks like you are doing everything the correct way
> >
> >> We’ll try and bypass the UPS console and write direct to GCM now
> >> through
> >> curl or something. Do you know if the device token in the UPS console
> >> is
> >> the Android token to use?
> >>
> > That is good test indeed and yes the token in UPS is the one you can
> > use
> > for your GCM test.
> >
> >> Thanks
> _______________________________________________
> Aerogear-users mailing list
> Aerogear-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-users/attachments/20151126/83590718/attachment-0001.html 

More information about the Aerogear-users mailing list