我有两个密钥:我的info.plist中的NSLocationAlwaysUsageDescription和NSLocationWhenInUseUsageDescrition。不过,App并不是要求获得位置许可。我使用nativescript和webpack来构建这个应用程序。我已经按照这个git存储库来编写功能代码:https://github.com/nickcoury/nativescript-maps-app
答案 0 :(得分:2)
开始初始化19:21:47,335 INFO [stdout] (default task-1) <?xml version="1.0" encoding="UTF-8"?>
19:21:47,337 INFO [stdout] (default task-1) <!-- This file can be an empty text file (0 bytes) -->
19:21:47,339 INFO [stdout] (default task-1) <!-- We're declaring the schema to save you time if you do have to configure
19:21:47,340 INFO [stdout] (default task-1) this in the future -->
19:21:47,342 INFO [stdout] (default task-1) <beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19:21:47,342 INFO [stdout] (default task-1) xsi:schemaLocation="
19:21:47,344 INFO [stdout] (default task-1) http://java.sun.com/xml/ns/javaee
19:21:47,345 INFO [stdout] (default task-1) http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
19:21:47,345 INFO [stdout] (default task-1)
19:21:47,345 INFO [stdout] (default task-1) </beans>
和CLLocationManager
,然后该应用会要求获得位置许可。
除非您调用startUpdatingLocation
方法,否则不会显示弹出窗口。