简体   繁体   English

iPhone-从网页打开应用程序

[英]iPhone - Open Application from Web Page

This sounds odd. 这听起来很奇怪。 In fact, it sounds like a security risk to me. 实际上,这对我来说听起来像是安全隐患。 However, I would swear that I have seen web pages that you can click a link on and it opens the app store on the iPhone. 但是,我发誓我已经看到了可以单击链接的网页,它会在iPhone上打开应用程序商店。

My question is, is it possible to launch any application from through a web page? 我的问题是,是否可以通过网页启动任何应用程序? Can parameters be passed to the application? 参数可以传递给应用程序吗? I do not need technical details. 我不需要技术细节。 I'm just curious if it is possible. 我只是好奇是否有可能。

Thank you, 谢谢,

Yes. 是。 From Control and configuration of applications through Info.plist - Invoking your iPhone application by URL : 通过Info.plist进行应用程序的控制和配置-通过URL调用iPhone应用程序

Invoking your iPhone application by URL 通过URL调用iPhone应用程序

The CFBundleURLTypes key allows you to specify URL schemes that will cause the iPhone to switch to your application. CFBundleURLTypes键使您可以指定URL方案,以使iPhone切换到您的应用程序。 No, you can't override the schemes for the built-in applications. 不,您不能覆盖内置应用程序的方案。

If your application is launched using a URL type named scheme, then you can also provide a different startup image "Default-scheme.png" instead of the regular "Default.png". 如果您的应用是使用名为scheme的URL类型启动的,则还可以提供其他启动映像“ Default-scheme.png”,而不是常规的“ Default.png”。

See iPhone file extension app association for more details. 有关更多详细信息,请参见iPhone文件扩展名应用程序关联

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM