[aerogear-dev] [cordova] Push Plugin : externalise Push config
Lukáš Fryč
lukas.fryc at gmail.com
Thu Oct 9 04:24:52 EDT 2014
We could also externalize configs not only for Cordova, but for all
supported platforms, and then having just one tab in the UI to generate
sample config (push-config.json) for all platforms.
The location of the config can follow convention-over-configuration in
terms of platform-specific location where it should be placed.
On Thu, Oct 9, 2014 at 10:18 AM, Sebastien Blanc <scm.blanc at gmail.com>
wrote:
>
>
> On Thu, Oct 9, 2014 at 9:58 AM, Lukáš Fryč <lukas.fryc at gmail.com> wrote:
>
>> +1 that would be very useful
>>
>> We should consider allowing both approaches, in-code and in separated
>> config file.
>>
> Yep I mentioned that in the ticket
>
>>
>> On Thu, Oct 9, 2014 at 9:17 AM, Sebastien Blanc <scm.blanc at gmail.com>
>> wrote:
>>
>>> Cool !
>>> Here we go then https://issues.jboss.org/browse/AGCORDOVA-34
>>>
>>>
>>>
>>> On Thu, Oct 9, 2014 at 9:13 AM, Erik Jan de Wit <edewit at redhat.com>
>>> wrote:
>>>
>>>>
>>>> Like it.
>>>>
>>>> On 9 Oct,2014, at 8:56 , 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
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>
>>
>>
>> _______________________________________________
>> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20141009/b0cf21d0/attachment.html
More information about the aerogear-dev
mailing list