Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48983

Geolocation documentation clarification

$
0
0

This is a question about this page: Geolocation | W3C Geolocator Application API Plugin.

The documentation says:

For iOS you have to add this configuration to your **configuration.xml** file

<edit-config file="*-Info.plist" mode="merge" target="NSLocationWhenInUseUsageDescription">
   <string>We use your location for full functionality of certain app features.</string>
</edit-config>

However, there is no configuration.xml. There’s a config.xml, and I assume that’s what is being referred to, but currently there are no <edit-config> tags in my config.xml, so I want to make sure I’m putting things in the right place. Should I be modifying config.xml?

(Also note, in the iOS simulator, this feature seems to work even without modifying a config/configuration file. I’m not sure if that’s expected.)

Also note that the config.xml file appears to be overwritten whenever I run ionic cap sync, if that’s even the right file to modify.

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 48983

Trending Articles