简体   繁体   中英

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? 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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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