Multiple apps with the same URL Scheme - iOS

后端 未结 4 513
暗喜
暗喜 2020-12-23 17:10

So for my new app I\'m having a URL scheme so that people can launch my app from another app or from a website... \"myapp://\" ... So what happens if there is another ap

4条回答
  •  独厮守ぢ
    2020-12-23 18:09

    According to the Apple docs:

    If multiple third-party applications register to handle the same URL scheme, it is undefined as to which of the applications is picked to handle URLs of that type.

    Exact quote from the Apple docs, for 8 consecutive years:

    Note: If more than one third-party app registers to handle the same URL scheme, there is currently no process for determining which app will be given that scheme.

    Sources:

    • Communicating with Other Apps (archive from Dec 2011)
    • Implementing Custom URL Schemes (archive from May 2019)

    As of September 2019, this part of the documentation was removed from the Apple website. The closest related document may now be Register Your URL Scheme.

提交回复
热议问题