Multiple apps with the same URL Scheme - iOS

后端 未结 4 536
暗喜
暗喜 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:01

    If two apps register the same custom URL scheme, it is undefined which app will actually be launched. One will be launched but there is no way to know.

    Here's a real kicker. If you have two apps on your device with the same URL scheme, and you delete the one that actually gets launched, the other one will not get launched by the URL without rebooting the iOS device.

    Your best solution is to ensure your custom URL scheme is not trivial so there is little chance another app will have the same scheme.

提交回复
热议问题