具有相同URL方案的多个应用程序 - iOS [英] Multiple apps with the same URL Scheme - iOS

查看:123
本文介绍了具有相同URL方案的多个应用程序 - iOS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以对于我的新应用程序,我有一个URL方案,以便人们可以从另一个应用程序或网站启动我的应用程序...myapp://...那么如果有另一个应用程序会发生什么与我的URL方案相同的AppStore?或者,如果有人试图窃取我的URL方案?

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 app in the AppStore that has the same URL scheme as mine? Or if someone tries to steal my URL Scheme?

推荐答案

如果两个应用程序注册了相同的自定义URL方案,则未定义哪个应用程序将实际启动。一个将推出,但没有办法知道。

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.

这是一个真正的踢球者。如果您的设备上有两个具有相同URL方案的应用,并且您删除了实际启动的应用,则另一个应用将无法通过URL启动而无需重新启动iOS设备。

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.

您最好的解决方案是确保您的自定义URL方案不是一件容易的事,因此其他应用程序几乎没有机会拥有相同的方案。

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.

这篇关于具有相同URL方案的多个应用程序 - iOS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆