Can an iOS application "re-register" to process a URL scheme without reinstalling it?

An iOS application can register to process the URL scheme when it is installed.

Officially, “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 provided to this scheme,” according to the “Communicating with Other Applications” section of Apple’s “Additional Applications” .

In practice, however, it appears that the application that recently registered to handle this URL scheme is the one it gave. If the second application is registered to process the URL scheme for which the application is already registered, is it possible for the first application to somehow "re-register" the URL scheme handler without reinstalling it?

+4
source share
1 answer

I have no evidence for this, but I'm sure registration for URL schemes, as well as registration for processing files, etc. - This is a time setting procedure.

However, in my experience, providing updates through the application store and updating the application launches this installation procedure (since the updated application can register new URL patterns). Therefore, if you constantly update your applications, providing frequent updates, iOS should prefer this (and from this point of view, the unofficial rule used by the last handler is used).

+3
source

Source: https://habr.com/ru/post/1495805/


All Articles