<div dir="ltr">hrm.<div><br></div><div>what about this something like this? unescape(encodeURIComponent(URL))</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Thu, Apr 10, 2014 at 5:22 PM, Lucas Holmquist <span dir="ltr">&lt;<a href="mailto:lholmqui@redhat.com" target="_blank">lholmqui@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 style="word-wrap:break-word">so after testing this thing out with encodeURIComponent,  the delete does work,  however,  we need to &quot;double up&quot; the encode.<div><br></div><div>this works:</div><div><br></div>
<div><a href="https://gist.github.com/lholmquist/10393357" target="_blank">https://gist.github.com/lholmquist/10393357</a></div><div><br></div><div><br></div><div>this doesn&#39;t:</div><div><br></div><div><a href="https://gist.github.com/lholmquist/10393450" target="_blank">https://gist.github.com/lholmquist/10393450</a></div>
<div><div class="h5"><div><br></div><div><br></div><div><br><div><div>On Apr 7, 2014, at 2:09 PM, Lucas Holmquist &lt;<a href="mailto:lholmqui@redhat.com" target="_blank">lholmqui@redhat.com</a>&gt; wrote:</div><br><blockquote type="cite">
<div style="word-wrap:break-word"><br><div><div>On Apr 7, 2014, at 12:52 PM, Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt; wrote:</div><br><blockquote type="cite">Ok,<div>
<br></div><div>So as token, we use the endpointURL, and on client we perform <span style="background-color:rgba(255,255,255,0);font-size:small"> the </span><span style="background-color:rgba(255,255,255,0);font-size:small">encodeURIComponent() </span><span style="background-color:rgba(255,255,255,0);font-size:small">function ?</span></div>
</blockquote><div><br></div><div>i think so( as suggested 2 months ago  :) )   i just need to see how this will affect how we store stuff in LS.</div><div><br></div><div><br></div><br><blockquote type="cite">
<div><span style="background-color:rgba(255,255,255,0);font-size:small"><br></span></div><div><span style="background-color:rgba(255,255,255,0);font-size:small">-Matthias<span></span></span></div><div><br>On Monday, April 7, 2014, Lucas Holmquist &lt;<a href="mailto:lholmqui@redhat.com" target="_blank">lholmqui@redhat.com</a>&gt; wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">so i went back to look at what i had,<div><br></div><div><br></div><div>i don&#39;t think we need to get to complicated here,</div>

<div><br></div><div>reading the spec stuff, and this example</div><div><br></div><div><a href="https://wiki.mozilla.org/WebAPI/SimplePush#Client_.28WebApp.29_code" target="_blank">https://wiki.mozilla.org/WebAPI/SimplePush#Client_.28WebApp.29_code</a></div>

<div><br></div><div>they show sending the pushEndpoint to the &quot;App server&quot;,  so i think we could just use and keep it simple</div><div><br></div><div>it is also recommended that the channelID is never exposed to the application.</div>

<div><br></div><div><br><div><div>On Apr 1, 2014, at 3:34 PM, Lucas Holmquist &lt;<a>lholmqui@redhat.com</a>&gt; wrote:</div><br><blockquote type="cite"><div style="word-wrap:break-word">i had something,  now i forgot what it was,   need to go back and check<br>

<div><div>On Apr 1, 2014, at 3:05 PM, Matthias Wessendorf &lt;<a>matzew@apache.org</a>&gt; wrote:</div><br><blockquote type="cite"><div dir="ltr"><br><div>On Fri, Feb 14, 2014 at 2:06 PM, Lucas Holmquist <span dir="ltr">&lt;<a>lholmqui@redhat.com</a>&gt;</span> wrote:<br>


<blockquote 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 style="word-wrap:break-word">still exploring</div></blockquote>
<div><br></div><div>:-) any recent thoughts on &#39;encodeURIComponent()&#39; ? </div><div> </div><blockquote 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 style="word-wrap:break-word"><br><div><div>On Feb 13, 2014, at 3:39 PM, Sebastien Blanc &lt;<a>scm.blanc@gmail.com</a>&gt; wrote:</div><br><blockquote type="cite">
<div dir="ltr"><br><div><br><br><div>On Wed, Feb 12, 2014 at 2:30 PM, Lucas Holmquist <span dir="ltr">&lt;<a>lholmqui@redhat.com</a>&gt;</span> wrote:<br>


<blockquote 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 style="word-wrap:break-word">i might have a couple thoughts, but i need to try some things out first</div>



</blockquote>
<div><br></div><div>Any update on that or does the solution proposed by Matzew (using <span style="font-size:13px;font-family:arial,sans-serif"> </span><span style="color:rgb(48,57,66);font-family:Menlo,monospace;font-size:11px;white-space:pre-wrap">encodeURIComponent() ) could be enough ? </span></div>



<blockquote 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 style="word-wrap:break-word">
<div><br><div><div>On Feb 12, 2014, at 3:53 AM, Sebastien Blanc &lt;<a>scm.blanc@gmail.com</a>&gt; wrote:</div><br><blockquote type="cite"><div dir="ltr"><br>
<div><br><br><div>On Tue, Feb 11, 2014 at 7:15 PM, Sebastien Blanc <span dir="ltr">&lt;<a>scm.blanc@gmail.com</a>&gt;</span> wrote:<br>



<blockquote 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">Ok,<div>I&#39;ve been doing some tests by using the PushEndpoint as device token. For registration it works but I just faced an issue by trying to unregister because the URL for the DELETE looks like : </div>






<div><br></div><div><a href="https://judconpush-sblanc.rhcloud.com/rest/registry/device/https://updates.push.services.mozilla.com/update/my_personnal_psuhendpoint_id" target="_blank">https://judconpush-sblanc.rhcloud.com/rest/registry/device/https://updates.push.services.mozilla.com/update/my_personnal_psuhendpoint_id</a> [<br>






</div><div><br></div><div>And the REST endpoint get a bit crazy by the extra &quot;/&quot; present in the endpoint URL. Therefore, I think we must just use the last URL fragment as deviceToken.</div></div></blockquote><div>





 </div><div>Ok answering to myself ;) That won&#39;t work neither since if we do that UPS won&#39;t have the compllete push endpoint URL. </div><div>So how do we deal with that ?</div><blockquote 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>
<br><br><div>On Thu, Feb 6, 2014 at 3:27 PM, Matthias Wessendorf <span dir="ltr">&lt;<a>matzew@apache.org</a>&gt;</span> wrote:<br><blockquote 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"><br><div><br><br><div>On Thu, Feb 6, 2014 at 3:11 PM, Sebastien Blanc <span dir="ltr"></span></div></div></div></blockquote></div></div></blockquote></div></div></div></blockquote></div></div>
</div></blockquote></div></div></div></blockquote></div></div></blockquote></div></div></blockquote></div></div></blockquote></div></div></div></blockquote></div><br><br>-- <br>Sent from Gmail Mobile<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" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></blockquote>
</div><br></div>_______________________________________________<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" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a></blockquote>
</div><br></div></div></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" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>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>