简体   繁体   English

iOS 6模拟器上的Phonegap地理位置问题

[英]Issues with Phonegap Geolocation on iOS 6 simulator

I'm getting a "kCLErrorDomain error 0" message when trying to use the geolocation plugin on the iPhone 6 simulators. 尝试在iPhone 6模拟器上使用地理位置插件时,出现“ kCLErrorDomain错误0”消息。 My app seems to work fine with actual devices (including an iPhone 6 running iOS 8.0.2), but does not work on the simulator. 我的应用程序似乎可以在实际设备(包括运行iOS 8.0.2的iPhone 6)上正常运行,但在模拟器上无法正常工作。 Any ideas what the issue is? 任何想法是什么问题? I'm not sure if it's an issue I'll see with certain version of iOS, I've only been able to test of iOS 7 and iOS 8.0.2 我不确定特定版本的iOS是否会出现此问题,我只能测试iOS 7和iOS 8.0.2

I am not using Phonegap Build, btw 我没有使用Phonegap Build,顺便说一句

Appreciate any help you can provide! 感谢您可以提供的任何帮助!

The suggested answers on this question should help you out. 关于这个问题的建议答案应该可以帮助您。

Geolocation is not working in iOS 8 simulator 地理位置在iOS 8模拟器中不起作用

The key suggestion that did it for me was to go to the Debug menu for the iOS Simulator, then select Location and choose anything except Custom Location... . 对我有用的主要建议是转到iOS模拟器的“ 调试”菜单,然后选择“ 位置”并选择“ 自定义位置...”以外的任何内容。 You can leave it like this or go back and change it to a custom location after a few seconds. 您可以像这样保留它,或者几秒钟后返回并将其更改为自定义位置。

My guess is that the simulator has a bug which defaults to a NULL custom location on the initial start-up, and doesn't actually get a value until you start changing options. 我的猜测是,模拟器存在一个错误,该错误在初次启动时默认为NULL自定义位置,并且直到您开始更改选项时才真正获得值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM