# Can Execute Hint

DevFeed: [Can Execute Hint](<https://devfeed.tech/articles/can-execute-hint-19239.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/can-execute-hint/>)

Author: Shai Almog

Published: 2017-01-24T00:00:00Z

Content type: tutorial

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [iOS](<https://devfeed.tech/topics/ios.md>), [Google Maps](<https://devfeed.tech/topics/google-maps.md>), [API](<https://devfeed.tech/topics/api.md>), [App](<https://devfeed.tech/topics/app.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [apple](<https://devfeed.tech/tags/apple.md>), [availability](<https://devfeed.tech/tags/availability.md>), [google](<https://devfeed.tech/tags/google.md>), [google-maps](<https://devfeed.tech/tags/google-maps.md>), [ios](<https://devfeed.tech/tags/ios.md>), [plist](<https://devfeed.tech/tags/plist.md>), [privacy](<https://devfeed.tech/tags/privacy.md>), [xcode](<https://devfeed.tech/tags/xcode.md>)

## AI overview

This tutorial explains how Display.canExecute(url) can test whether a feature or URL is available before executing a command, such as opening Google Maps instead of Apple Maps on iOS. It also describes the iOS URL-scheme privacy change, the required plist configuration, and build-hint automation for standard URL prefixes.

## Source excerpt

Display.canExecute(url) provides us with a generic tool to test the availability of a feature before executing a command. This is very useful for inter-app communications and allows us to achieve various things such as launching Google Map instead of Apple Maps on iOS. Let's say I want to navigate using Google Maps if it's installed in iOS but if not I'll settle for Apple Maps I can do something like this: