<div dir="ltr">Even if they were allowed... Apps, with older AGDroid SDKs aren&#39;t able to subscribe. That means if the UPS server updates, they all would receive no message :-)<div><br></div><div>Therefore that look up for &#39;old&#39; tokens is generally needed </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 20, 2016 at 1:23 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 Wed, Apr 20, 2016 at 12:19 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: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>Hi,<br></div><div><br></div><div>the format for tokens received from InstanceID API have a slightly different format:</div><div><a href="https://github.com/aerogear/aerogear-unifiedpush-server/commit/fa74eea6a183d852fb26773bb1b62cf9016c9157" target="_blank">https://github.com/aerogear/aerogear-unifiedpush-server/commit/fa74eea6a183d852fb26773bb1b62cf9016c9157</a></div><div><br></div><div>It&#39;s basically (prefix_string : RegistrationID).</div><div><br></div><div>Now, in order to be able to subscribe on a topic is it _really_ required to have a &#39;new&#39; InstanceID token ? I could not find a _clear_ statement</div></div></blockquote><div><br></div></span><div>looks like InstanceID tokens are required:</div><div><a href="https://developers.google.com/android/reference/com/google/android/gms/gcm/GcmPubSub#public-methods" target="_blank">https://developers.google.com/android/reference/com/google/android/gms/gcm/GcmPubSub#public-methods</a><br></div><div><br></div><div>But, on the other hand it does not mention that GCM.register() tokens are not allowed :-)</div><span class=""><div> <br></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><br></div><div>I am asking because I&#39;m working on the server hook to send topic request.<br></div><div><br></div><div>If the answer yes, only InstanceID tokens can subscribe, we need a little switch on the server (not a show stopper):</div><div>1) send /topics/{something} (should not affect &#39;old&#39; tokens_</div><div>2) fallback: find tokens w/o the &#39;:&#39;, so we can fallback to pure registration Id for &quot;non-Instance ID &quot; tokens</div><div><br></div><div><br></div><div>Thanks,</div><div>Matthias</div><span><font color="#888888"><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>
</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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">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>
</div>