Is there an iphone url scheme to start a web app in standalone mode from a link

时光总嘲笑我的痴心妄想 提交于 2019-12-18 05:46:28

问题


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.
  • 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.
  • 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.

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.


回答1:


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.

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.




回答2:


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



来源:https://stackoverflow.com/questions/3707974/is-there-an-iphone-url-scheme-to-start-a-web-app-in-standalone-mode-from-a-link

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!