<div dir="ltr">In the mean time, I&#39;ve create a JIRA to track this: <a href="https://issues.jboss.org/browse/AGIOS-487">https://issues.jboss.org/browse/AGIOS-487</a><div><br></div><div>-Matthias</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 18, 2016 at 12:51 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">There is one more thing:<div><br></div><div>Since the users might decide to unregister at any point of lifetime in the app, the app also has to know the token, in order to actually perform that HTTP_DELETE </div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 18, 2016 at 9:53 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: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>On Mon, Apr 18, 2016 at 9:34 AM, Yves Nicolas <span dir="ltr">&lt;<a href="mailto:yves.nicolas@dynamease.com" target="_blank">yves.nicolas@dynamease.com</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 text="#000000" bgcolor="#FFFFFF">
    looks good, will try the aerogear push helper from mfischelmayer.<br>
    Was actually aware for the Android one, looking for the equivalent
    in Apple.<br>
    Definitely agree with you regarding the difference, it makes sense
    for the App to keep being registered at the APN level (user doesnt
    need to authorize the remote notifications again) but we want the
    user to be unregistered from the server, although this is not a high
    priority use case.</div></blockquote><div><br></div></span><div>There are a few things we need to be aware of:</div><div>* when app issues such an unregister call, the UPS won&#39;t be sending push notifications</div><div>* each launch of the application will hit &#39;application:didRegisterForRemoteNotificationsWithDeviceToken&#39;, meaning the previously removed token will be readded. Local state on the app needs to be around, to deviced if the registration w/ UPS should be called or not.</div><span><font color="#888888"><div><br></div><div>-Matthias</div></font></span><div><div><div><br></div><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 text="#000000" bgcolor="#FFFFFF"><div><div><br>
    <br>
    <br>
    <div>Le 18/04/2016 09:27, Matthias
      Wessendorf a écrit :<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Hi Yves,<br>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Mon, Apr 18, 2016 at 9:15 AM, Yves
            Nicolas <span dir="ltr">&lt;<a href="mailto:yves.nicolas@dynamease.com" target="_blank">yves.nicolas@dynamease.com</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">API
              deletion is ok. Use case for deletion by Alias : Java
              written<br>
              backoffice doesnt know about device tokens, we want to be
              able to<br>
              deregister users from the backoffice. API management, or
              from the java<br>
              library. our other use case for unregistration are from
              the devices<br>
              themselves, they know about the token. We can manage with
              the Rest api,<br>
            </blockquote>
            <div><br>
            </div>
            <div>Or, you can use this nice library that a different
              AeroGear user created!</div>
            <div><a href="https://github.com/mfischelmayer/aerogear-push-helper/blob/master/src/main/java/at/ftec/aerogear/api/impl/DefaultAerogearAdminService.java#L152-L159" target="_blank">https://github.com/mfischelmayer/aerogear-push-helper/blob/master/src/main/java/at/ftec/aerogear/api/impl/DefaultAerogearAdminService.java#L152-L159</a><br>
            </div>
            <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">is
              there a plan to include the unregistration inside the
              android and IOS<br>
              library? </blockquote>
            <div><br>
            </div>
            <div>Android:</div>
            <div>there is this method:</div>
            <div><a href="https://github.com/aerogear/aerogear-android-push/blob/master/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/PushRegistrar.java#L40" target="_blank">https://github.com/aerogear/aerogear-android-push/blob/master/aerogear-android-push/src/main/java/org/jboss/aerogear/android/unifiedpush/PushRegistrar.java#L40</a><br>
            </div>
            <div><br>
            </div>
            <div>which does both:</div>
            <div>* &#39;unregister&#39; from the GCM service, as well as from
              the UPS.</div>
            <div><br>
            </div>
            <div>Perhaps that&#39;s something you can leverage ? </div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>On iOS, we don&#39;t have this, because Apple does not
              recommend to have users manually unregister from push on
              the app. Their preferred way is disabling push on the
              global setting.</div>
            <div><br>
            </div>
            <div>However, I think it&#39;s arguable that unregistering from
              UPS, for an app, is not equals to completely unregister
              from APNs, for the same app. Worth to explore this on a
              different thread  :-) </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">Thxs
              Message: 3 Date: Fri, 15 Apr 2016 19:18:47 +0200 From:<br>
              Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt;
              Subject: Re: [Aerogear-users]<br>
              what is the good way to delete an alias entry in aerogear
              unified push<br>
              servers To: &quot;<a href="mailto:aerogear-users@lists.jboss.org" target="_blank">aerogear-users@lists.jboss.org</a>&quot;<br>
              &lt;<a href="mailto:aerogear-users@lists.jboss.org" target="_blank">aerogear-users@lists.jboss.org</a>&gt;
              Message-ID:<br>
              &lt;<a href="mailto:CAAg5f2QR0MZ9nk1GjxMpHwNd6Zu_o7DrhAURO9yKJP%2B9O66R8w@mail.gmail.com" target="_blank">CAAg5f2QR0MZ9nk1GjxMpHwNd6Zu_o7DrhAURO9yKJP+9O66R8w@mail.gmail.com</a>&gt;<br>
              Content-Type: text/plain; charset=&quot;utf-8&quot; remove the
              entire installation<br>
              entry:<br>
              <a href="https://aerogear.org/docs/specs/aerogear-unifiedpush-rest/index.html#417932897" rel="noreferrer" target="_blank">https://aerogear.org/docs/specs/aerogear-unifiedpush-rest/index.html#417932897</a><br>
              what&#39;s the use-case - perhaps we can improve our story? On
              Fri, Apr 15,<br>
              2016 at 6:09 PM, Yves Nicolas &lt;<a href="mailto:yves.nicolas@dynamease.com" target="_blank"></a><a href="mailto:yves.nicolas@dynamease.com" target="_blank">yves.nicolas@dynamease.com</a>&gt;
              wrote:<br>
              <br>
              &gt; The user interface enable to uncheck the alias so
              that it doesn&#39;t<br>
              &gt; receive notification anymore but what is the good way
              to delete the<br>
              &gt; alias/device token from the aerogear database?<br>
              &gt;<br>
              &gt; Thanks<br>
              &gt; Yves<br>
              &gt;<br>
              &gt; _______________________________________________<br>
              &gt; Aerogear-users mailing list<br>
              &gt; <a href="mailto:Aerogear-users@lists.jboss.org" target="_blank">Aerogear-users@lists.jboss.org</a><br>
              &gt; <a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-users</a><br>
              &gt;<br>
              _______________________________________________<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>
            </blockquote>
          </div>
          <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>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Aerogear-users mailing list
<a href="mailto:Aerogear-users@lists.jboss.org" target="_blank">Aerogear-users@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-users" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-users</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<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></div></div><div><div><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>
</div></div></div></div>
</blockquote></div><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>
</div>
</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>