【问题标题】:Is there any way to open the android/ios native share dialog from a webpage有什么方法可以从网页打开 android/ios 本机共享对话框
【发布时间】:2017-06-22 07:59:53
【问题描述】:

我正在尝试向我的网站添加一个共享按钮,单击该按钮将在 android/ios 中打开本机共享对话框,用户可以在其中通过不同的可用应用程序共享它。我为 android 尝试了以下操作,但它在 chrome 浏览器中不起作用

intent:#Intent;action=android.intent.action.SEND;type=text/plain;S.android.intent.extra.TEXT={encoded URL};end

【问题讨论】:

  • 这在 iOS 上是不可能的。

标签: javascript android ios reactjs browser


【解决方案1】:

请查看对此进行详细说明的网站:https://paul.kinlan.me/sharing-natively-on-android-from-the-web/

【讨论】:

  • 我提到的网址来自这里...它不适合我
  • 这是从浏览器右边打开一个特定的应用程序。我想打开通用共享对话框
猜你喜欢
  • 2019-08-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-11-17
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多