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:
Falco
(Falco)
December 21, 2017, 12:55pm
2
Is this on Android or iOS?
The share button (just right of the like) uses the native share on Android:
Ok, did a quick try at this while I was in the plane and after some cleaning up sent a pull request .
Here is it in action:
1 Like
This is on Android. I still cannot see share button… Only ‘Open in browser’ option there. Sorry for Russian screenshot.
Sorry, I was not clear. I understand the purpose of the button near like. I have a slightly another case:
Open this link . The post has an external link. Users wait for this link, it redirects to documentation source.
I follow the link in the post, and it is opened in the same mobile application. Then I cannot share the current page URL.
That’s my case.
2 Likes
Falco
(Falco)
December 21, 2017, 2:33pm
5
So your use case is for non-discourse webpages, that doesn’t have a share UI.
Should be enough to add:
builder.addDefaultShareMenuItem();
between line 72 and 73 here: https://github.com/discourse/DiscourseMobile/blob/24e4eda3e94f257eea803a9c5df1ba939596eba5/android/app/src/main/java/com/discourse/ChromeCustomTabModule.java#L72-L73
What do you think @joffreyjaffeux ?