In iOS apple maps application, when selecting a destination, apple maps gives you options to use any of the installed mapping apps to get turn by turn directions.
How does apple maps do this? is there a way to implement similar feature in my own app?
One way is to get a list of most popular navigation apps, check that they support url schemes, and check if any of them are installed by using:
if ([[UIApplication sharedApplication] canOpenURL:url]) {
// mapping app is installed ...
}
However, this is not reliable as url schemes might change and also some of the mapping turn-by-turn apps do not support url schemes.
Thanks in advance.