Ios geolocation plugin not working

i am using geolocation plugin to get current user position
it work as expected in android but in IOS it give me 0 latitude and 0 longitude

any help please

In iOS you need to add this item to config.xml file

<edit-config file="*-Info.plist" mode="merge" target="NSLocationWhenInUseUsageDescription">
   <string>We want your location! Best regards NSA</string>

thanks for your replay but where i put this item config.xml or index.html ?

The use it on config.xml

1 Like

can you tell me please where to put this code in config.xml file ?

Before platform(android and ios)…tags

thanks for your help , now IOS work as expected but it stopped in android :frowning:

It should be added inside the ios platform tag in config.xml