[aerogear-dev] SimplePush sync with MOz

JR Conlin jrconlin at gmail.com
Wed Jul 30 12:14:57 EDT 2014


On 2014/7/30 1:16 AM, Matthias Wessendorf wrote:
> Using the little hack, I am not seeing the pushEndpoint being returned
> by their server:
> https://gist.github.com/matzew/cbda360d72eaaef75971
>
Registration messages carry the pushEndpoint, which is supposed to go to
the App.
Actual Push Notifications don't have the pushEndpoint. The Client (the
bit of SimplePush that the Apps talk to), maps the ChannelID to the App
that requested it and fires the event when it gets an update.
>
>     Currently, when we do |navigator.push.register()| the result we
>     send back is an object that includes the pushEndpoint, this is
>     actually changing to be more in line with Mozilla. Instead of the
>     object being sent back, we will send back the pushEndpoint as a
>     String. <--- is a super easy change that sebi already did, just
>     need to re-merge it back in
>
>     but in our message handler, our notification that is sent back
>     includes the channelId and version
>
>
> here is, the JSON I receive w/ the above hack:
> {"messageType":"notification","updates":[{"channelID":"d9b74644-4f97-46aa-b8fa-9393985cd6cd","version":3}]}
>
>
>  
>
>     I believe the server should now be sending the pushEndpoint in the
>     notification instead.
>
>     I'd do it myself, but you know, it's java
>
>
>     _______________________________________________
>     aerogear-dev mailing list
>     aerogear-dev at lists.jboss.org <mailto:aerogear-dev at lists.jboss.org>
>     https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>
>
>
> -- 
> 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/20140730/570d7151/attachment.html 


More information about the aerogear-dev mailing list