My app uses the users location when their utilizing the app. When they close the app to go home the blue banner saying '... is using your location' pops up. It goes away after a few seconds, but it's quite annoying and I don't think users will like it. How would I stop the location manager once the app closes? Not sure where to put that in the delegate, or how to even write it.
我的应用在用户使用应用程序时使用位置。当用户关闭应用程序回家时,蓝色的横幅上写着“……”正在使用你的位置弹出。它几秒钟后就会消失,但它很烦人,我认为用户不会喜欢它。当应用程序关闭时,如何停止位置管理器?不知道该把它放在委托的什么地方,也不知道怎么写。
Added in a visual representation.
添加到视觉表示中。
1 个解决方案
#1
1
You probably have location access as background mode in your Info.plist. You should change it to when in use only.
在Info.plist中,可能有位置访问作为后台模式。你应该只在使用的时候把它改一下。
#1
1
You probably have location access as background mode in your Info.plist. You should change it to when in use only.
在Info.plist中,可能有位置访问作为后台模式。你应该只在使用的时候把它改一下。