用于跟踪位置的 NativeScript 地理定位设置目的消息
NativeScript geolocation set purpose message for tracking location
我正在使用 nativescript-vue 和 nativescript-geolocation 插件。
Apple 不批准我的应用程序,因为我没有在向用户发送允许请求时指定地理跟踪的原因(参见示例):
据我所知,nativescript-geolocation 中没有这样的选项来更改该消息。
是否有任何其他方法可以更改此消息,或者我错过了 nativescript-geolocation 中的隐藏选项?
参考插件自述文件,
For a custom prompt message on IOS, the following keys are required:
NSLocationAlwaysAndWhenInUseUsageDescription (iOS 11.0+) OR
NSLocationAlwaysUsageDescription (iOS 8.0-10.0) and
NSLocationWhenInUseUsageDescription. Read more about request
always usage.
您将在 App_Resources/iOS/info.plist
中添加这些密钥
<key>NSLocationWhenInUseUsageDescription</key>
<string>Your message here.</string>
我正在使用 nativescript-vue 和 nativescript-geolocation 插件。
Apple 不批准我的应用程序,因为我没有在向用户发送允许请求时指定地理跟踪的原因(参见示例):
据我所知,nativescript-geolocation 中没有这样的选项来更改该消息。
是否有任何其他方法可以更改此消息,或者我错过了 nativescript-geolocation 中的隐藏选项?
参考插件自述文件,
For a custom prompt message on IOS, the following keys are required: NSLocationAlwaysAndWhenInUseUsageDescription (iOS 11.0+) OR NSLocationAlwaysUsageDescription (iOS 8.0-10.0) and NSLocationWhenInUseUsageDescription. Read more about request always usage.
您将在 App_Resources/iOS/info.plist
<key>NSLocationWhenInUseUsageDescription</key>
<string>Your message here.</string>