Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/106.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios:应用程序未请求位置权限_Ios_Nativescript_Angular2 Nativescript - Fatal编程技术网

Ios:应用程序未请求位置权限

Ios:应用程序未请求位置权限,ios,nativescript,angular2-nativescript,Ios,Nativescript,Angular2 Nativescript,我有两个键:我的info.plist中的NSLocationAlwaysUsageDescription和nsLocationWhenUsageDescription。不过,该应用程序并没有要求位置许可。我已经使用nativescript和webpack构建了这个应用程序。我遵循此git存储库对功能进行编码:开始初始化CLLocationManager和startUpdatingLocation,然后应用程序将请求位置权限 除非您调用CLLocationManager方法,否则它不会显示弹出窗口

我有两个键:我的info.plist中的NSLocationAlwaysUsageDescription和nsLocationWhenUsageDescription。不过,该应用程序并没有要求位置许可。我已经使用nativescript和webpack构建了这个应用程序。我遵循此git存储库对功能进行编码:

开始初始化
CLLocationManager
startUpdatingLocation
,然后应用程序将请求位置权限


除非您调用
CLLocationManager
方法,否则它不会显示弹出窗口。

只有在您尝试使用与位置相关的功能时,应用程序才会请求权限。