简体   繁体   中英

Share Url from browser to other apps in android

I am working on a website and the requirement is that user's can share a page, link or image

I want to make a share button on my webpage which allows user to share a link, image, etc via the apps installed in the user's phone. How can I achieve that.

It's should be like the share panel as shown in the image below

在此输入图像描述

Loks like you want something like this: Android get url from browser

Also look through this link https://developer.android.com/training/app-indexing/deep-linking.html

Not very clear about the question. But from what I understand, you want to share a particular page from your app, so it can be visited using a shareable link.

I think you're looking for is Deep Linking .


Update: HTML Sharing Buttons: https://www.addtoany.com/buttons/for/website

I believe that the Web Share API is what you are looking for.

It allows you to initiate the share intent via javascript. Android then displays the exact same share popup as in native apps.

Example from MDN:

navigator.share({
  title: document.title,
  text: 'Hello World',
  url: 'https://developer.mozilla.org',
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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