How to stop location services when the application is in the background?

In my application, I load some sites into a UIWebView. Some of these sites use location services.

My problem is that when you browse one of these sites when the app goes to the background, location services are still turned on. Since my application did not enable them - I do not know what to do.

In the current solution, I load a blank page when going to the background, and then load the original site when going to the foreground. It works, but a blank page is visible to the user when viewing the application - which is not very good.

Does anyone have any other ideas?

+3
source share
3

location services settings , . , .

+2

. webView, .

0

, ?

100%, , , .

, , .

0
source

All Articles