[英]get location data when location services are off by ios
Is there any way to get location of the iPhone without demanding location services from the user? 有什么方法可以在不要求用户提供定位服务的情况下获取iPhone的位置? It should not be really accurate. 它应该不是很准确。
edit: I have no problem with implementation of location services. 编辑:我没有与位置服务的实现问题。 I try to find an alternative way 我尝试寻找另一种方法
No this is not possible. 不行,这是不可能的。 Apple has made location service abstract so you can't really see which technic is used. Apple已将定位服务抽象化,因此您无法真正看到所使用的技术。 Thus if the user turns off the location service you can't get the location any other way. 因此,如果用户关闭了位置服务,您将无法通过其他任何方式获取位置。
There is however the option to check the user IP and get a very rough location. 但是,可以选择检查用户IP并获得一个非常粗糙的位置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.