# Share a webpage link in mobile app?

**URL:** https://meta.discourse.org/t/share-a-webpage-link-in-mobile-app/76559
**Category:** Feature
**Created:** [December 21, 2017, 12:46pm UTC](https://meta.discourse.org/t/share-a-webpage-link-in-mobile-app/76559 "2017-12-21T12:46:27Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Ivan\_Rapekas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ivan_rapekas/32/248924_2.png) [@Ivan\_Rapekas](https://meta.discourse.org/u/Ivan_Rapekas)
#### Post date: [December 21, 2017, 12:46pm UTC](https://meta.discourse.org/t/share-a-webpage-link-in-mobile-app/76559/1 "2017-12-21T12:46:27Z")

</div>

Before announcing mobile application for our customers I’ve performed some tests. I found that sharing a webpage URL 📣 using app is a tricky action. Native browser has a share button, the application does not. Every time first I have to _open the page in browser_ then share.

This button is must have option: ![sharethis-logo_318-50326-32](https://global.discourse-cdn.com/meta/original/3X/6/e/6ee54a0ae2e5f04fea6ccd71c7490b63ad6e6c4c.jpg)

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [December 21, 2017, 12:55pm UTC](https://meta.discourse.org/t/share-a-webpage-link-in-mobile-app/76559/2 "2017-12-21T12:55:17Z")

</div>

Is this on Android or iOS?

The share button (just right of the like) uses the native share on Android:

> [@Introducing the Web Share API | Web | Google Developers](https://meta.discourse.org/t/introducing-the-web-share-api-web-google-developers/70515/2):
>
> Ok, did a quick try at this while I was in the plane and after some cleaning up sent a [pull request](https://github.com/discourse/discourse/pull/5204). Here is it in action:

---

<div class="post-metadata">

### Author: ![Ivan\_Rapekas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ivan_rapekas/32/248924_2.png) [@Ivan\_Rapekas](https://meta.discourse.org/u/Ivan_Rapekas)
#### Post date: [December 21, 2017, 1:13pm UTC](https://meta.discourse.org/t/share-a-webpage-link-in-mobile-app/76559/3 "2017-12-21T13:13:39Z")

</div>

This is on Android. I still cannot see share button… Only ‘Open in browser’ option there. Sorry for Russian screenshot.

 ![Screenshot_20171221-163604](https://global.discourse-cdn.com/meta/original/3X/3/4/34a090785a573ef061e2f8a05983b72829f492b9.png)

---

<div class="post-metadata">

### Author: ![Ivan\_Rapekas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ivan_rapekas/32/248924_2.png) [@Ivan\_Rapekas](https://meta.discourse.org/u/Ivan_Rapekas)
#### Post date: [December 21, 2017, 1:30pm UTC](https://meta.discourse.org/t/share-a-webpage-link-in-mobile-app/76559/4 "2017-12-21T13:30:09Z")

</div>

> [@Falco](#):
>
> The share button (just right of the like) uses the native share on Android:

Sorry, I was not clear. I understand the purpose of the button near like. I have a slightly another case:

1. Open [this link](https://www.cuba-platform.com/discuss/t/deployment-and-reports-libreoffice-not-found/2933/12). The post has an external link. Users wait for this link, it redirects to documentation source.
2. I follow [the link](https://doc.cuba-platform.com/manual-6.7/tomcat_war_deployment_linux.html) in the post, and it is opened in the same mobile application. Then I cannot share the current page URL.  
That’s my case.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [December 21, 2017, 2:33pm UTC](https://meta.discourse.org/t/share-a-webpage-link-in-mobile-app/76559/5 "2017-12-21T14:33:33Z")

</div>

So your use case is for non-discourse webpages, that doesn’t have a share UI.

Should be enough to add:

```plaintext
builder.addDefaultShareMenuItem();

```

between line 72 and 73 here: [DiscourseMobile/android/app/src/main/java/com/discourse/ChromeCustomTabModule.java at 24e4eda3e94f257eea803a9c5df1ba939596eba5 · discourse/DiscourseMobile · GitHub](https://github.com/discourse/DiscourseMobile/blob/24e4eda3e94f257eea803a9c5df1ba939596eba5/android/app/src/main/java/com/discourse/ChromeCustomTabModule.java#L72-L73)

What do you think @j.jaffeux ?
