What are the variables for the Cordova geolocation plugin in iOS?

Asked

Viewed 73 times

0

During the creation of a plugin for Cordova that uses geolocation, it is necessary to add a variable to "Privacy - Location Usage Description" which is the GEOLOCATION_USAGE_DESCRIPTION.

in the 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 "Privacy - Location Always Usage Description" and "Privacy - Location When in Use Description"?

thus, in xocde config, the three messages in info.plist would be filled in.

1 answer

0


The variables for the 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 in the Geolocation plugin.

So all the Infos will be filled when you build the app with Cordova.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.