<div dir="ltr">I know &quot;Works on my machine&quot; is a bad response, but well, works on my machine*<div><br></div><div>The caveats are I am using UPS 1.1.2 and AGDroid-push 3.0.0-SNAPSHOT.  As far as I know AGDroid 2.2.2 does not use Instance ID.</div><div><br></div><div>I&#39;ve uploaded some screen shots here : <a href="http://imgur.com/a/eKF4F">http://imgur.com/a/eKF4F</a></div><div><br></div><div>Can you provide some more details?  What versions of things are you using?  Can you gist your source code, etc.</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 23, 2016 at 8:34 PM, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Thu, Mar 24, 2016 at 1:00 AM, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>sorry for the late reply, but the mail got stuck in my moderation queue :-( </div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote"><span>On Thu, Mar 17, 2016 at 2:44 PM, cel <span dir="ltr">&lt;<a href="mailto:heldner@glue.ch" target="_blank">heldner@glue.ch</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">The new device Token returned by the new GCM - API for Android (using<br>
InstanceId.getToken  instead of gcm.register(context), which is deprecated)<br></blockquote><div><br></div></span><div>For that we have a ticket, but weren&#39;t able to get to it:</div><div><a href="https://issues.jboss.org/browse/AGDROID-427" target="_blank">https://issues.jboss.org/browse/AGDROID-427</a><br></div><span><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
is not accepted by the Aerogear server. The format of the<br>
InstanceId.getToken is different.<br>
Example:<br>
Beginnning of gcm.register - Token :<br>
APA91bGdSq3-OKaDV_pyvunTZpnD_LKb6OrxIk7...<br>
Beginning of InstanceId.getToken : eArreQ7017w:APA91bFe5lTYzEoNSivfPYaID...<br>
 So if I try to register with the InstanceId.getToken using the Restful<br>
interface &quot;/registry/device&quot; the Http response of the aerogear server is:<br>
&quot;200 OK&quot;, but I still cannot find it in the installations. Consequently no<br></blockquote></span></div></div></div></blockquote><div><br></div></span><div>I think the weird part is, that it&#39;s returning 200 to the Android device, which means it was accepted,</div><div>but something else went wrong, while sending.</div><div><br></div><div>Any more logs? Or can you increase logging on the UPS?</div><div><a href="https://aerogear.org/docs/unifiedpush/ups_userguide/index/#debugging" target="_blank">https://aerogear.org/docs/unifiedpush/ups_userguide/index/#debugging</a><br></div><span class=""><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
push notifications from aerogear can be sent to that device. Is this a Bug?<br>
Has this been fixed in newer versions?<br></blockquote><div><br></div></span><div>yes, that&#39;s a bug - looks like the token format changed w/ InstanceId, and our &#39;validator&#39; needs to be updated.</div><div><br></div><div>Thanks for reporting, I have filed a JIRA and we will be looking at it:</div><div><a href="https://jira.jboss.org/browse/AGPUSH-1600" target="_blank">https://jira.jboss.org/browse/AGPUSH-1600</a><br></div><div><br></div><div>-Matthias</div><span><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://aerogear-dev.1069024.n5.nabble.com/GCM-Device-Token-not-accepted-tp12403.html" rel="noreferrer" target="_blank">http://aerogear-dev.1069024.n5.nabble.com/GCM-Device-Token-not-accepted-tp12403.html</a><br>
Sent from the aerogear-dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br>
</blockquote></span></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a></div>
</font></span></div></div>
</blockquote></span></div><span class=""><br><br clear="all"><div><br></div>-- <br><div>Matthias Wessendorf <br><br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a></div>
</span></div></div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br></div>