[aerogear-dev] PushPlugin

Matthias Wessendorf matzew at apache.org
Mon Sep 30 09:33:45 EDT 2013


On Fri, Sep 27, 2013 at 1:36 PM, Kris Borchers <kris at redhat.com> wrote:

> Seems like a good idea to me.
>

yeah, same here - like it

>
> On Sep 27, 2013, at 3:11 AM, Erik Jan de Wit <edewit at redhat.com> wrote:
>
> Hi,
>
> We have already got some documentation how to use cordova with unified
> push by using the PushPlugin. But I was thinking about forking it and
> making our own version I think Matthias had this idea as well. If you look
> at the PushPlugin now there is a lot of things that are platform specific.
> For instance to register you should do:
>
> if (device.platform == 'android' || device.platform == 'Android') {
>   pushNotification.register(successHandler, errorHandler, {"senderID":"replace_with_sender_id", "ecb":"onNotificationGCM"});
> } else {
>   pushNotification.register(tokenHandler, errorHandler, {"badge":"true", "sound":"true", "alert":"true", "ecb":"onNotificationAPN"});
> }
>
> Then there are some more platform specific thing that we could remove as
> well, because we know that you are going to use this together with Unified
> Push we could make the process of registering a lot easier and create only
> one register function that works for both platforms:
>
> pushNotification.register(successHandler, errorHandler, {"badge":"true", "sound":"true", "alert":"true", "senderID":"123", "ecb":"onNotification"});
>
> Making it easier for people to get started with cordova and for us less
> documentation to maintain ;)
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>
>
> _______________________________________________
> aerogear-dev mailing list
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20130930/77e2f50c/attachment.html 


More information about the aerogear-dev mailing list