<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">JIRA'd &nbsp;&nbsp;<a href="https://issues.jboss.org/browse/AGJS-158">https://issues.jboss.org/browse/AGJS-158</a><br><div><div>On Apr 4, 2014, at 8:16 AM, Lucas Holmquist &lt;<a href="mailto:lholmqui@redhat.com">lholmqui@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Apr 4, 2014, at 4:22 AM, Matthias Wessendorf &lt;<a href="mailto:matzew@apache.org">matzew@apache.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hello,<div><br></div><div>atm the ups.js bits need the complete URL for the device registration endpoint:</div><div><br></div><div><br></div><div><span class="" style="font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 11.818181991577148px; line-height: 15.272726058959961px; white-space: pre; ">UPClient</span><span style="font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 11.818181991577148px; line-height: 15.272726058959961px; white-space: pre; "> </span><span class="" style="font-weight: bold; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 11.818181991577148px; line-height: 15.272726058959961px; white-space: pre; ">=</span><span style="font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 11.818181991577148px; line-height: 15.272726058959961px; white-space: pre; "> </span><span class="" style="font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 11.818181991577148px; line-height: 15.272726058959961px; white-space: pre; ">AeroGear</span><span class="" style="font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 11.818181991577148px; line-height: 15.272726058959961px; white-space: pre; ">.</span><span class="" style="font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 11.818181991577148px; line-height: 15.272726058959961px; white-space: pre; ">UnifiedPushClient</span><span class="" style="font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 11.818181991577148px; line-height: 15.272726058959961px; white-space: pre; ">(</span><span class="" style="font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 11.818181991577148px; line-height: 15.272726058959961px; white-space: pre; ">variantId</span><span class="" style="font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 11.818181991577148px; line-height: 15.272726058959961px; white-space: pre; ">,</span><span style="font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 11.818181991577148px; line-height: 15.272726058959961px; white-space: pre; "> </span><span class="" style="font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 11.818181991577148px; line-height: 15.272726058959961px; white-space: pre; ">variantSecret</span><span class="" style="font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 11.818181991577148px; line-height: 15.272726058959961px; white-space: pre; ">,</span><span style="font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 11.818181991577148px; line-height: 15.272726058959961px; white-space: pre; "> </span><span class="" style="font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 11.818181991577148px; line-height: 15.272726058959961px; white-space: pre; ">unifiedPushUrl</span><span style="font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 11.818181991577148px; line-height: 15.272726058959961px; white-space: pre; "> </span><span class="" style="font-weight: bold; font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 11.818181991577148px; line-height: 15.272726058959961px; white-space: pre; ">+</span><span style="font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 11.818181991577148px; line-height: 15.272726058959961px; white-space: pre; "> </span><span class="" style="color:rgb(221,17,68);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:15.272726058959961px;white-space:pre">"/rest/registry/device"</span><span class="" style="font-family: Consolas, 'Liberation Mono', Courier, monospace; font-size: 11.818181991577148px; line-height: 15.272726058959961px; white-space: pre; ">);</span><div>
<br></div><div><br></div><div>The interesting part is, that the "/rest/registry/device" part is always the same (unless someone builds the server from scratch and changes all the URLs, but why should one do that?)</div></div></div></blockquote><blockquote type="cite"><div dir="ltr">
<div><br></div><div>On Android and iOS, the registration APIs, just require the "root url" (e.g.&nbsp;http(s)//host:port/contex).</div><div><br></div><div>BTW. the JS bits for Cordova are following that same convention, see:</div>
<div><a href="http://aerogear.org/docs/guides/aerogear-cordova/AerogearCordovaPush/#_sample_example">http://aerogear.org/docs/guides/aerogear-cordova/AerogearCordovaPush/#_sample_example</a><br></div><div><br></div><div>I was wondering if we should do the same on the CORE-JS library ?&nbsp;</div></div></blockquote><div><br></div><div>this makes sense, &nbsp;i think it was probably left over from when we were doing development.</div><div><br></div><div>let me JIRA that</div><div><br></div><br><blockquote type="cite"><div dir="ltr">
<div><br></div><div><br></div><div>-Matthias</div><div><br></div><div>--&nbsp;<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>
_______________________________________________<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">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">aerogear-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/aerogear-dev</blockquote></div><br></body></html>