是否有iphone url方案从链接启动独立模式的Web应用程序

时间:2023-01-19 15:28:03

What I'm trying to do is this:

我想要做的是:

  • I've got a web app the user can choose to add to the homescreen and run in standalone mode.
  • 我有一个用户可以选择添加到主屏幕并以独立模式运行的Web应用程序。

  • Sometimes the server side of the app sends SMS'es to the user to notify the user of significant events. The SMS contains an URI to the app page of the event.
  • 有时,应用程序的服务器端向用户发送SMS以通知用户重要事件。 SMS包含事件应用页面的URI。

  • If the user has added the application to homescreen I would like to launch the app in standalone mode
  • 如果用户已将应用程序添加到主屏幕,我想以独立模式启动应用程序

Is there a way to achieve this?

有没有办法实现这个目标?

EDIT

From what I've found so far iOS does not implement a url scheme for launching browser based (ie. web apps) in standalone mode. ... But apple should though :) Apple implements parsing of urls to youtube.com and redirects them to the video app.

从我发现到目前为止,iOS没有实现在独立模式下启动基于浏览器(即.Web应用程序)的URL方案。 ...但苹果应该:)苹果实现了对youtube.com网址的解析,并将它们重定向到视频应用程序。

If they store the URL to the app placed on the home screen it would be a simple task to redirect links to that app.

如果他们将URL存储到主屏幕上的应用程序,那么将链接重定向到该应用程序将是一项简单的任务。

2 个解决方案

#1


4  

iOS does not implement a url scheme for launching browser based (ie. web apps) in standalone mode. ... But apple should though :) Apple implements parsing of urls to youtube.com and redirects them to the video app.

iOS没有实现用于在独立模式下启动基于浏览器(即.Web应用程序)的URL方案。 ...但苹果应该:)苹果实现了对youtube.com网址的解析,并将它们重定向到视频应用程序。

If they store the URL to the app placed on the home screen it would be a simple task to redirect links to that app.

如果他们将URL存储到主屏幕上的应用程序,那么将链接重定向到该应用程序将是一项简单的任务。

#2


1  

not from an SMS I don't think - but you could look at push notifications which can be sent from your server. I haven't used them yet, but the way I understand it you can send a notification from your server and link it to the app.

不是来自短信我不认为 - 但你可以看看可以从你的服务器发送的推送通知。我还没有使用它们,但按照我理解的方式,您可以从服务器发送通知并将其链接到应用程序。

http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction/Introduction.html

sorry, thats probably a better link

对不起,这可能是一个更好的链接

#1


4  

iOS does not implement a url scheme for launching browser based (ie. web apps) in standalone mode. ... But apple should though :) Apple implements parsing of urls to youtube.com and redirects them to the video app.

iOS没有实现用于在独立模式下启动基于浏览器(即.Web应用程序)的URL方案。 ...但苹果应该:)苹果实现了对youtube.com网址的解析,并将它们重定向到视频应用程序。

If they store the URL to the app placed on the home screen it would be a simple task to redirect links to that app.

如果他们将URL存储到主屏幕上的应用程序,那么将链接重定向到该应用程序将是一项简单的任务。

#2


1  

not from an SMS I don't think - but you could look at push notifications which can be sent from your server. I haven't used them yet, but the way I understand it you can send a notification from your server and link it to the app.

不是来自短信我不认为 - 但你可以看看可以从你的服务器发送的推送通知。我还没有使用它们,但按照我理解的方式,您可以从服务器发送通知并将其链接到应用程序。

http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction/Introduction.html

sorry, thats probably a better link

对不起,这可能是一个更好的链接