Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

For Skobbler maps iOS SDK, how to control when app asks for location permissions?

Tags:

ios

skmaps

When we enable offline skobbler maps, as soon as the user loads the map, it asks for the location permissions. We have built our own 'current location' button and would like for the app to ask for permission only when the user presses the current location button. I was told that this functionality would be included in the latest version of skobbler but couldn't find any documentation/examples. Thanks in advance for any help.

like image 304
Harry Jiang Avatar asked Dec 14 '25 19:12

Harry Jiang


1 Answers

In my case I'm using a CLLocationManager that start to update location once the view is loaded, the permission is asked automatically. Then I save a flag (already located) also you can store a user Default with that flag.

like image 53
lojals Avatar answered Dec 17 '25 13:12

lojals



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!