I am working on a map application in my iPhone app.
I have a button go.
When the user clicks this button in this method I want to check if user has installed the waze application on his iphone. If yes then navigate to waze application otherwise open iPhone’s default map app.
Try to do this way :
Here,
canOpenURLallows you to test if the Waze app is installed on your iPhone. if iPhone can open the urlwaze://it means you already have the app and it will launch it. Otherwise it will launch the default Maps app. Safari won’t be called.