开发者

does the MKMapview.userLocation update when running background?

开发者 https://www.devze.com 2023-04-12 13:22 出处:网络
I have set the \"Required background modes\" key to \"App registers for location updates\". this allowstracking the user’s location in the background. but when i get gps information from the mkmapvi开

I have set the "Required background modes" key to "App registers for location updates". this allows tracking the user’s location in the background. but when i get gps information from the mkmapvi开发者_JS百科ew.userlocation background ,i found that the gps information is the same as when it is running foreground last time. this means the mkmapview.userlocation doesn't update when running background. Is that right? is there any idea to get user location information from the mkmapview.userloction when running background?


I have found that the MKMapview.userLocation isn't updating the location info when it is running background. so i have to use the cllocation to get location info background

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号