简体   繁体   English

当ios关闭位置服务时获取位置数据

[英]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.

相关问题 当位置服务关闭时,navigator.gelocation 在 iOS 上仍然为真 - navigator.gelocation still true on iOS when location services are off iOS应用程序要求用户两次尝试在关闭位置服务的情况下访问位置时打开位置服务 - iOS application asking the user two times to turn on location services when trying to access location with the location services turned off 定位服务在iOS中后台关闭 - Location services switching off in background in iOS 如何关闭iOS中的“位置服务”对话框? - How to turn off the Location Services dialogue in iOS? iPhone定位服务已关闭,但应用程序仍可以获取位置吗? - iPhone Location Services is turned off, but the application can still get the location? 当用户关闭并打开iPhone设置中的位置服务时,iOS应用会自动重新启动 - iOS app relaunches automatically when user turn off and on the location services in iPhone settings Xamarin iOS如何检查位置服务是否已关闭或应用级设备位置是否已关闭 - Xamarin iOS how to check if Location Services is off or app level device location is off 获取iPhone的iPhone位置,无需首选项位置服务设置为ON - Get iPhone location in iOS without preference Location Services set to ON 允许位置服务权限后,iOS获取位置 - iOS Get Location after allow location services permission IOS中的位置服务,提示 - Location Services in IOS, prompt
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM