Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-4853

externalise Push config

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • push
    • None

      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.

              edewit1@redhat.com Erik Jan de Wit
              sebastienblanc Sebastien Blanc (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: