[aerogear-dev] [cordova] Push Plugin : externalise Push config

Matthias Wessendorf matzew at apache.org
Thu Oct 9 03:08:30 EDT 2014


+1000

that also means, every Cordova app, has a specific file to edit the
configuration, instead of open some random JS files

Love the idea

On Thu, Oct 9, 2014 at 8:56 AM, Sebastien Blanc <scm.blanc at gmail.com> wrote:

> Hi all,
> I was thinking of that : as we are adding more and more support for Push
> Networks (iOS, Android, Microsoft, firefoxOS, Amazon), the configuration
> list is getting longer and longer in the code. What about creating a
> separate json file containing this config that the plugin could consume ?
>
> like, pushconfig.json :
>
>  {
>       pushServerURL: "https://javaoneups-sblanc.rhcloud.com/ag-push/",
>       android: {
>         senderID: "313664704978",
>         variantID: "39d64fb1-6c82-4638-9d02-3fbbbad5ba28",
>         variantSecret: "d2e4e60a-e3d9-4db7-acee-0d18abc953a4"
>       },
>      ios : {
>      ....
>      },
>      simplePush : {
>      ...
>      },
>      microsoft : {
>     ...
>       },
>      amazon : {
>      ...
>      }
> }
>
> That should not be mandatory as we could still use the "inline" style.
>
> wdyt ?
>
> Sebi
>
> _______________________________________________
> 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/20141009/ac953aa2/attachment-0001.html 


More information about the aerogear-dev mailing list