<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="color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:15.272726058959961px;white-space:pre">UPClient</span><span style="color:rgb(0,0,0);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;color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:15.272726058959961px;white-space:pre">=</span><span style="color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:15.272726058959961px;white-space:pre"> </span><span class="" style="color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:15.272726058959961px;white-space:pre">AeroGear</span><span class="" style="color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:15.272726058959961px;white-space:pre">.</span><span class="" style="color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:15.272726058959961px;white-space:pre">UnifiedPushClient</span><span class="" style="color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:15.272726058959961px;white-space:pre">(</span><span class="" style="color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:15.272726058959961px;white-space:pre">variantId</span><span class="" style="color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:15.272726058959961px;white-space:pre">,</span><span style="color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:15.272726058959961px;white-space:pre"> </span><span class="" style="color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:15.272726058959961px;white-space:pre">variantSecret</span><span class="" style="color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:15.272726058959961px;white-space:pre">,</span><span style="color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:15.272726058959961px;white-space:pre"> </span><span class="" style="color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:15.272726058959961px;white-space:pre">unifiedPushUrl</span><span style="color:rgb(0,0,0);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;color:rgb(0,0,0);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:11.818181991577148px;line-height:15.272726058959961px;white-space:pre">+</span><span style="color:rgb(0,0,0);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="color:rgb(0,0,0);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><br></div><div>On Android and iOS, the registration APIs, just require the "root url" (e.g. 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 ? </div>
<div><br></div><div><br></div><div>-Matthias</div><div><br></div><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>