任何自动触发我的应用程序启动的方法
当 iPhone 接到外部电话时,有什么方法可以自动启动我的应用程序吗?
谢谢
Is there any way to automatically launch my app when the iPhone receives an external phone call?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有什么办法吗?也许如果你越狱它并在私有框架中挖掘,这是我不太了解的事情。至于官方记录的方法,你就很不走运了。
在 iOS 中,要启动当前未运行或暂停的应用程序,您可以使用 自定义 URL 方案。该操作系统标准内置了对几种不同方案的支持,
tel
就是其中之一。支持此方案使得“电话”应用程序可以通过电话号码自动启动。根据文档:因此,即使您明确支持该方案,操作系统也会通过手机应用程序胜过您的应用程序。
Is there any way? Maybe if you jailbreak it and dig around in the private frameworks, which is something I don't know much about. As for an officially documented method, you're very out of luck.
In iOS, to launch an app that is not currently running or suspended, you use a custom URL scheme. The OS comes standard with built in support for a few different schemes,
tel
being one of them. Supporting this scheme is what makes the Phone app launch automatically with a telephone number. According to the docs:So, even if you were to explicitly support the scheme, the OS would trump your app with the phone app.