We can try switching the topic share icon action to the web share intent on supported platforms ( Chrome android for now)
AI-generated summary
The Web Share API has been introduced to Discourse, allowing users to share content directly from the platform. Falco created a pull request to implement the API, which has been merged and is working on Chrome Android and iOS 12.2 Falco.
The native share sheet is used, and the “reply as linked topic” button is still accessible by tapping on the post’s time gerhard.
Users have requested support for sharing files to Discourse on all major operating systems, including Windows and macOS anon82467725. However, this would require implementing the V2 share target API, which allows uploads, and is a more complex task Falco.
Enabling the Web Share API on non-mobile devices is not recommended due to compatibility issues with certain browsers and operating systems Johani. Using Discourse’s own share sheet as a fallback for browsers that don’t support the Web Share API has been suggested Justin_Vega.
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:
This only happens on Android yes? Seems fairly safe to me then. @gerhard can you review?
It’s merged and it works great on Chrome 61. ![]()
I don’t have an android device to test, but I’m assuming this means users no longer have access to the “reply as linked topic” button that is normally next to the share buttons?
Can this functionality be put elsewhere? Or is there any way to add a custom button to the native share sheet?
Chrome OS에서 이 기능이 작동하는 모습을 보고 싶습니다. Discourse는 이미 PWA이므로, 별이 정렬되는 것처럼 보입니다.
https://chromeunboxed.com/chromebook-files-sharing-will-soon-work-with-pwas/
또한 Discourse 로 파일을 공유할 수 있기를 바랍니다. 예를 들어, 이미지를 선택하여 Discourse에 공유하면 이미지가 상단에 삽입된 새로운 주제가 생성됩니다. 그리고 이미지의 제목이 주제 제목으로 사용되도록 하면 좋겠습니다.
많은 사람들이 Windows를 사용한다는 것도 알고 있으므로, 해당 플랫폼에 대한 지원도 훌륭할 것입니다. 그들은 네이티브 메뉴를 사용하길 원합니다. 매우 깔끔해 보입니다.
macOS에 대해서도 같은 말을 할 수 있지만, 구현 방식이 어떻게 될지 정확히 확신은 없습니다.
요약하면: 모든 주요 운영 체제(모바일 및 데스크톱 모두)에서 파일을 Discourse 로 공유할 수 있기를 바랍니다. 이와 함께, 모든 주요 데스크톱 운영 체제에서 Discourse 에서 링크를 공유할 수 있기를 바랍니다. ![]()
그리고, Firefox와 Safari는 Web Share API를 지원합니까? 처음에는 Chromium 브라우저에서만 지원되는 것으로 알고 있었습니다.
Android를 통한 Discourse 공유 기능으로 이미 가능합니다.
현재는 API V1만 구현되어 있어 텍스트만 지원됩니다. V2 공유 대상 API는 업로드를 허용하지만, 구현이 다소 어렵습니다. pr-welcome.
아직 모바일이 아닌 기기에서 이 기능을 활성화하기에는 이르다. 몇 가지 예를 들면 다음과 같다.
- Windows나 Chrome OS를 사용하지 않는 경우 Chrome에서는 작동하지 않는다.
- Windows를 사용하지 않는 경우 Edge에서는 작동하지 않는다.
- 어떤 운영체제를 사용하든 Firefox에서는 작동하지 않는다.
"web share" | Can I use... Support tables for HTML5, CSS3, etc
이러한 문제가 곧 해결될 것 같지는 않다.
브라우저가 Web Share API를 지원하지 않을 경우, Discourse 자체의 공유 시트를 폴백으로 사용하지 않는 이유는 무엇인가요?
그리고 Web Share API는 여전히 iOS 14에서 작동하지 않습니다. ![]()




