0

Is there any way to check if user has a certain app (google.maps, yandex.maps or native maps) on his/her device to make a list of apps suitable for routing?

Max
  • 636
  • 3
  • 13
  • 28
  • No you cant do this! Imagine this would be possible: Apps could use this information as unique identifier for your iOS Device and could sell this data to make money for adds and something like this. Conclusion: Luckily for privacy reasons this is not possible. – Jonathan Dec 19 '18 at 13:52
  • Possible duplicate of [iphone - Check if an app is installed](https://stackoverflow.com/questions/6854362/iphone-check-if-an-app-is-installed) – LoVo Dec 19 '18 at 14:26

1 Answers1

1

You can check if user has this apps on device (google.maps, yandex.maps or native maps) using URL scheme.

for Google maps:

let appURL = URL(string: “comgooglemaps://”) if UIApplication.shared.canOpenURL(appURL!) { // code for open URL print(“Can Open URL”) }

canister_exister
  • 567
  • 4
  • 15