首页 文章

是否可以通过短信启动iPhone应用程序?

提问于
浏览
3

这个问题:

Launch iPhone app from link in email

建议可以通过电子邮件中的链接启动特定的iPhone应用程序 . 是否可以在短信中包含此类型的应用启动链接,以便读者可以选择按下它(并启动应用),就像他们可以在短信中拨打电话号码一样?

2 回答

  • 7

    阅读iOS应用程序编程指南部分Implementing Custom URL Schemes .

    • 在Info.plist中添加一行(右键单击根项并选择Add Row)并为新行指定密钥 URL types .

    • 打开作为该行的子项添加的项目,并将 URL identifier 设置为类似 com.yourcompany.product 的项目 .

    • 将子行添加到项目0并为其指定密钥 URL Schemes

    Set the value on that row to something unique. Maybe your app name (no spaces, just letters).

    • Implement the application:handleOpenURL: in your application delegate in case you want to actually look at the URL.
  • 1

    你为什么不尝试这个?将网址方案连接到您的应用需要5分钟 . 然后给自己发一条带有链接的短信 .

相关问题