[英]How to change alert text while asking permission for Location in Cordova iOS app?
我猜你正在使用cordova-plugin-geolocation
。 为此,在config.xml
添加以下行
<edit-config target="NSLocationWhenInUseUsageDescription" file="*-Info.plist" mode="merge"> <string>AppName would like to use your location.</string> </edit-config>
或者
删除插件: cordova plugin remove cordova-plugin-geolocation
再次添加: cordova plugin add cordova-plugin-geolocation --variable GEOLOCATION_USAGE_DESCRIPTION="AppName would like to use your location."
希望这可以帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.