How does iOS handle duplicate URL schemes?

If 2 other applications register the same URL scheme, how does it work with iOS?

+7
source share
4 answers

He will introduce a UIActionSheet view that allows the user to choose which application to run (applications that process .doc files are a good example). Where the icon you indicated is indicated on the buttons of the action sheet when it is displayed to the user

+2
source

IOS documentation says:

Note. If more than one third-party application is registered to process the same URL scheme, there is currently no process for determining which application will be assigned to this scheme.

The behavior of the OS is undefined if there are two applications for the URL scheme, so you should try to define a handler specific to your application to avoid this situation (for example, awesomeMapsApp:// instead of maps:// ).

+9
source

Here is what I experienced:

iOS 5: The first installed application will be selected. If you uninstall the first installed application, the rest will not have lunch unless you install it again.

iOS 6: The last installed application will be selected. If you uninstall the last installed application, the previous installed application will be selected.

+1
source

This can actually be really problematic. For example, until March 2016, an application called Grabb processes PayPal schemes, so if your application tries to open PayPal (with everything defenseless, etc. Inside the call), it launches Grabb instead and there is nothing you can do about it. Even with the openURL alertView added in iOS 9, this can be a big security issue.

+1
source

All Articles