[Location Plugin] Internationalization InfoPlist

Forge Component
(22)
Published on 3 Apr by OutSystems R&D
22 votes
Published on 3 Apr by OutSystems R&D

There is a possibility to add internationalization to the justification that goes to Apple through Info.Plist.

Natively we would have to use "infoPlist.strings", using Outsystems is there any similar way?


regards,


Rodrigo Santos

Hi Rodrigo, 


You can change the message to justify the need to use the service location by changing the advanced extensibility of plugin: 

{
    "plugin":
    {
        "url": "https://github.com/OutSystems/cordova-plugin-geolocation.git#4.0.1-OS1",
        "variables": [{
            "name": "LOCATION_WHENINUSE_USAGE_DESCRIPTION",
            "value": "We access your location to improve your experience."
        }]
    }
}


But currently, we don't support Localization for these messages. For that, you need to use another plugin to enable it.


Thanks for the answer.


Regards

Vitor Oliveira wrote:

Hi Rodrigo, 


You can change the message to justify the need to use the service location by changing the advanced extensibility of plugin: 

{
    "plugin":
    {
        "url": "https://github.com/OutSystems/cordova-plugin-geolocation.git#4.0.1-OS1",
        "variables": [{
            "name": "LOCATION_WHENINUSE_USAGE_DESCRIPTION",
            "value": "We access your location to improve your experience."
        }]
    }
}


But currently, we don't support Localization for these messages. For that, you need to use another plugin to enable it.


Hi All,

I updated this configuration within the plugin and regenerated the application binary however the info.plist file for the generated binary is as follows:

The Location When In Use Usage Description property is unchanged and the newly defined value is appended within Location Always Usage Description property. Is there any other specific variable to be used to change this property?