[aerogear-dev] [JavaScript] UnifiedPush client lib

Lucas Holmquist lholmqui at redhat.com
Fri Apr 4 08:16:35 EDT 2014


On Apr 4, 2014, at 4:22 AM, Matthias Wessendorf <matzew at apache.org> wrote:

> Hello,
> 
> atm the ups.js bits need the complete URL for the device registration endpoint:
> 
> 
> UPClient = AeroGear.UnifiedPushClient(variantId, variantSecret, unifiedPushUrl + "/rest/registry/device");
> 
> 
> 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?)
> 
> On Android and iOS, the registration APIs, just require the "root url" (e.g. http(s)//host:port/contex).
> 
> BTW. the JS bits for Cordova are following that same convention, see:
> http://aerogear.org/docs/guides/aerogear-cordova/AerogearCordovaPush/#_sample_example
> 
> I was wondering if we should do the same on the CORE-JS library ? 

this makes sense,  i think it was probably left over from when we were doing development.

let me JIRA that


> 
> 
> -Matthias
> 
> -- 
> Matthias Wessendorf 
> 
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> twitter: http://twitter.com/mwessendorf
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20140404/eb9ee9b1/attachment.html 


More information about the aerogear-dev mailing list