Multiple apps with the same URL Scheme - iOS

后端 未结 4 473
暗喜
暗喜 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 17:58

    Updated for 2016

    Apple's policy has changed since 2012. Today they indicate that multiple apps will not be allowed to register for the same scheme. Registration time is a much cleaner place to address contention than runtime, since it avoids the security issues discussed it other answers.

    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.

    Source:https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Inter-AppCommunication/Inter-AppCommunication.html#//apple_ref/doc/uid/TP40007072-CH6-SW1

提交回复
热议问题