<div dir="ltr">Eric, <div><br></div><div>Is this fixed by <a href="https://issues.jboss.org/browse/AGDROID-486">https://issues.jboss.org/browse/AGDROID-486</a>?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 11, 2015 at 10:50 AM, Erik Jan de Wit <span dir="ltr">&lt;<a href="mailto:edewit@redhat.com" target="_blank">edewit@redhat.com</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">Hi,<div><br></div><div>You would rarely need unregister this is from the android doc:</div><div><br></div><div><span style="font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:15px;line-height:19.5px;background-color:rgb(255,249,227)">You should rarely (if ever) need to call this method. Not only is it expensive in terms of resources, but it invalidates your registration ID, which should never change unnecessarily. A better approach is to simply have your server stop sending messages. Only use unregister if you want your application to stop using GCM permanently, or you have a compelling reason to recycle your registration ID</span><br></div><div><span style="font-family:&#39;Helvetica Neue&#39;,Helvetica,Arial,sans-serif;font-size:15px;line-height:19.5px;background-color:rgb(255,249,227)"><br></span></div><div>The error you are getting is wrong though, seems that that it doesn&#39;t have a deviceId anymore I&#39;ll investigate <br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Tue, Jul 28, 2015 at 11:58 AM, Jesús Martín González <span dir="ltr">&lt;<a href="mailto:jesus90martin@gmail.com" target="_blank">jesus90martin@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi all,<div><br></div><div>I&#39;m starting to use pushplugin for Cordova android and i have followed all instrucctions and examples available at: <a href="https://aerogear.org/docs/specs/aerogear-cordova/Push.html" target="_blank">https://aerogear.org/docs/specs/aerogear-cordova/Push.html</a> and other pages. I can receive notifications but when I try to unregister the device an error message appear: &quot;Seems this device is already unregistered&quot; and it is wrong because I am still receiving notifications.</div><div><br></div><div>I am using cordova 5.0.0 and deploying to android, i am using this for unregister: </div><div><br></div><div><font color="#0000ff">push.unregister(successHandler, errorHandler);</font></div><div><div><font color="#0000ff">function successHandler() {</font></div><div><font color="#0000ff">    alert(&quot;notificaciones desactivadas&quot;);</font></div><div><font color="#0000ff">}</font></div><div><font color="#0000ff"><br></font></div><div><font color="#0000ff">function errorHandler(message) {</font></div><div><font color="#0000ff">    alert(&quot;error &quot; + message);</font></div><div><font color="#0000ff">}</font></div></div><div><br></div><div><br></div><div>Can you help me?</div><div><br></div><div>Thanks<span><font color="#888888"><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Jesús Martín Gonzalez<div>Tel: <a href="tel:%2B34%20654420529" value="+34654420529" target="_blank">+34 654420529</a></div><div><br></div></div></div>
</font></span></div></div>
<br></div></div>_______________________________________________<br>
Aerogear-users mailing list<br>
<a href="mailto:Aerogear-users@lists.jboss.org" target="_blank">Aerogear-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-users</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Cheers,<div>       Erik Jan</div></div></div>
</font></span></div>
<br>_______________________________________________<br>
Aerogear-users mailing list<br>
<a href="mailto:Aerogear-users@lists.jboss.org">Aerogear-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-users</a><br>
<br></blockquote></div><br></div>