I dont know how to detect if user has not sharing location, when he tap the button myLocationButtonTapped - I would like to show an alert that he is not sharing the location.
Yes, but it is only visible only when you start the app, but I would like to see the alert when user tap the button myLocationButtonTapped and only than when location sharing is set to never.
@Cluade31 I dont want to just open the map. I want to provide directions form my location to the annotation in maps. I would like to navigate user from his current location to the annotation which is tapped by this left button.
Yes, thank you. Is it normal that when user choose allow once, current location disappears in couple of seconds when app is in background? I've got location in background option checked in project settings and it works fine with Allow while using the app. but not with Allow once
@Clause31 No I wont do that this way. I do not want to open links. I would like to do this like here: https://www.raywenderlich.com/7738344-mapkit-tutorial-getting-started - In the part Handling callout he provides some code to create directions from current location to the annotation from his map. As i spotted he uses maps app to do that.
@OOPer Thank you for your solution. Maybe you know if there is an option to choose opening it in apple maps and google maps? Is it a lot of work to do?
@OOPer - do you know how to display annotation name (annotation.title) as destination name in maps? In the forum they are managed to do that. In my case, when app opens map app, the directon is Unknown Location.
I dont know how to detect if user has not sharing location, when he tap the button myLocationButtonTapped - I would like to show an alert that he is not sharing the location.
Yes, but it is only visible only when you start the app, but I would like to see the alert when user tap the button myLocationButtonTapped and only than when location sharing is set to never.
@Cluade31 I dont want to just open the map. I want to provide directions form my location to the annotation in maps. I would like to navigate user from his current location to the annotation which is tapped by this left button.
Yes, thank you. Is it normal that when user choose allow once, current location disappears in couple of seconds when app is in background? I've got location in background option checked in project settings and it works fine with Allow while using the app. but not with Allow once
@Clause31 No I wont do that this way. I do not want to open links. I would like to do this like here: https://www.raywenderlich.com/7738344-mapkit-tutorial-getting-started - In the part Handling callout he provides some code to create directions from current location to the annotation from his map. As i spotted he uses maps app to do that.
@OOPer Thank you for your solution. Maybe you know if there is an option to choose opening it in apple maps and google maps? Is it a lot of work to do?
@OOPer - do you know how to display annotation name (annotation.title) as destination name in maps? In the forum they are managed to do that. In my case, when app opens map app, the directon is Unknown Location.