Custom URL schemes and app discovery
A custom scheme (myapp://) opens an app; apps can probe which other apps are installed.
In one line
Can open another app by its link name and guess which apps you have
A custom scheme (myapp://) opens an app; apps can probe which other apps are installed.
Used for deep links and to guess which apps the person has. Both systems now limit probing.
What it can and can't do
What the user does: Nothing. It happens when the app starts or you tap a link like myapp://
It can
- Open another app by its link name
- Check up to 50 named apps on iPhone
- Guess which apps you use from which ones answer
It cannot
- Test names it did not declare ahead of time on iPhone
- See the whole app list on Android 11 and later
- Take over a link that belongs to a verified web link
How it differs between platforms: iPhone allows a limit of 50 declared names. Android 11 and later filters which apps an app can see.
On Android and iPhone
| Android | iPhone | |
|---|---|---|
| Status | Supported | Partial |
| First version | Not available | iOS 9.0 |
| Permission or entitlement | intent-filter; QUERY_ALL_PACKAGES or <queries> (Android 11) | LSApplicationQueriesSchemes (max 50 schemes) |
| Protection level | normal | none |
| How access is granted | install | none |
| What the user sees | Not listed | Not listed |
| How long it lasts | Not listed | Not listed |
| How to take it back | Not listed | Not listed |
| Store policy | Play: QUERY_ALL_PACKAGES declaration | None listed |
| API | Intent, PackageManager.queryIntentActivities | UIApplication.canOpenURL |
| Notes | Package visibility filtering since Android 11 (API 30). | iOS blocks canOpenURL on schemes not declared; limit 50. |
Data you get
What comes back: Scheme openable
Shape: boolean
How often: per call
No individual data fields. The signal is the access itself.
Technical limits
- Apple 50-scheme cap
- Android visibility filter
The story
What it is
Special web style addresses (myapp://) that open an app, and can be used to test whether an app exists.
For you
A button in one app opens another app on a certain screen. You never see the address, but you notice the jump from app to app.
For makers
Old school way to hand people from one app to another with data attached. It is easy to copy and spoof, so Universal Links and App Links replaced most use, but it still powers login and payment handoffs.
Where you see it
| Type | Example | Apps |
|---|---|---|
| payments | You tap 'Pay with Venmo' and Venmo opens with the amount filled in, then returns you to the store. | Venmo, Cash App |
| social | The login screen sends you to the Facebook app to approve, then back to the game. | Facebook, Candy Crush |
| music | A share button opens the Spotify app on the exact song you picked. | Spotify |
| games | A friend's invite opens a game with a code already typed into the lobby. | Among Us |
| ads | An ad SDK tries a list of schemes to guess which apps you have, which both OSes now limit. | None named |
| developer | Developers test deep links in the simulator by typing myapp://profile/42. | None named |
Risks
- Easy to spoof
- Used to guess installed apps
Android and iPhone in short
- Android: Android lets any app claim a scheme, so Android prefers verified App Links.
- iPhone: iOS allows only 50 declared schemes to be checked and prefers Universal Links.
Good uses and abuse
Legitimate uses
- Open known partner apps
Known abuse
- Inferring installed-app lists for ads
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 3 of 5 | How revealing the data is |
| Utility | 3 of 5 | How useful it is to honest apps |
| Friction | 1 of 5 | How much the user has to do |
| Fingerprint bits | 8 | Rough identifying entropy, when known |
History
- 2015-09, iPhone iOS 9: canOpenURL limited to declared schemes (max 50)
- 2020-09, Android Android 11 (API 30): Package visibility restrictions
Related capabilities
Related
- Play QUERY_ALL_PACKAGES policy. Can see every installed app on Android only if Google approves the reason
Same idea on the web
- Installed native apps. Can't list your installed apps; can only check its own related app
Sources
How well checked: Checked against real behavior.