What are the variables for plugin cordova geolocation in iOS?

0

While creating a plugin for Cordova that uses geolocation, you must add a variable to "privacy - Location Usage Description" which is GEOLOCATION_USAGE_DESCRIPTION .

in config I have:

<plugin name="cordova-plugin-geolocation" spec="https://github.com/apache/cordova-plugin-geolocation.git">
    <variable name="GEOLOCATION_USAGE_DESCRIPTION" value="Mensagem de Uso"/>
</plugin>

But what are the variables for the "Privacy - Location Always Usage Description" and "Privacy - Location When in Use Description"?

So, in the xocde config, all three messages in info.plist would be populated.

    
asked by anonymous 29.08.2017 / 03:11

1 answer

0

Variables for other iOS geolocation options are

<variable name="GEOLOCATION_USAGE_DESCRIPTION" value="Mensagem de uso" />
<variable name="LOCATION_ALWAYS_AND_WHEN_IN_USE_USAGE_DESCRIPTION" value="Mensagem de uso" />
<variable name="LOCATION_ALWAYS_USAGE_DESCRIPTION" value="Mensagem de uso" />
<variable name="LOCATION_USAGE_DESCRIPTION" value="Mensagem de uso" />
<variable name="LOCATION_WHEN_IN_USE_USAGE_DESCRIPTION" value="Mensagem de uso" />

Just add these variables to the geolocation plugin.

So all the infos will be populated the moment you compile the app with the cordova.

    
17.01.2018 / 20:41