Multiple Global Extensibility Configurations values in mobile app

Multiple Global Extensibility Configurations values in mobile app

  

Im trying to specify the preferences in the Extensibility Configurations value window.

What I want to achieve is the following:

- For all apps(Android/iOS) screen orientation should be set to portrait. This can be achieved with the following preferences.

{
    "preferences": {
        "global": [{
            "name": "orientation",
            "value": "portrait"
        }]
    }
}

=================

For iOS settings I would need the these preferences

{
    "preferences": {
        "global": [{
            "name": "aps-environment",
            "value": "development"   /* To be changed to production when deploying to */
        }],
        "ios":[{
            "name":"target-device",
            "value":"handset"
        }]
     }
}

========

When adding the two together Im not able to have multiple values in the global preferences sectionlike this.

{
    "preferences": {
        "global": [{
            "name": "orientation",
            "value": "portrait",

            "name": "aps-environment",
            "value": "development"   /* To be changed to production when deploying to */
        }]
    }
}


Any suggestions?

Already found the problem...