Ios geolocation plugin not working


#1

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
thanks


#2

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>
</edit-config>

#3

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


#4

The use it on config.xml


#5

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


#6

Before platform(android and ios)…tags


#7

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