Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch SEND intents to import text on Android #11187

Closed
corintho opened this issue Apr 29, 2024 · 3 comments
Closed

Catch SEND intents to import text on Android #11187

corintho opened this issue Apr 29, 2024 · 3 comments
Assignees
Milestone

Comments

@corintho
Copy link

corintho commented Apr 29, 2024

Add support for opening URLs and plain text on mobile

In what scenarios do you need this feature?

When I want to add links to follow up later or copy some content to my notes.
I have to copy the text or URL, open the Siyuan app, paste the content, and go to what I was doing before.

Describe the optimal solution

If the app is registered as an opener for URL and TEXT content (activity with intent-filter on Android) it would be a lot simpler to handle those cases more practically.
I understand there is a challenge in synchronizing this new information, it could be tackled in a few ways.

Describe the candidate solution

I don't see an interim solution

Other information

If the idea is accepted, I'm open to discussing possible solutions, and I can also create a PR to implement this feature for Android back-to-back. Unfortunately, I do not have enough knowledge to do it on iOS at this time.

@88250
Copy link
Member

88250 commented Apr 29, 2024

I'm not sure if it's actually possible, but if you're already able to compile the SiYuan Android app, feel free to try to implement the sharing feature and PR to contribute the code, thanks.

@Soltus
Copy link
Contributor

Soltus commented Jul 6, 2024

Yes, the problem is considering the IOS side.

@88250 88250 changed the title Add support for opening URLs and plain text on mobile Catch SEND intents to import text/URL on Android Sep 9, 2024
@88250 88250 self-assigned this Sep 9, 2024
@88250 88250 changed the title Catch SEND intents to import text/URL on Android Catch SEND intents to import text on Android Sep 9, 2024
@88250 88250 modified the milestones: backlog, 3.1.6 Sep 9, 2024
@88250
Copy link
Member

88250 commented Sep 9, 2024

v3.1.6 will add the ability to receive text data from other apps.

REF: https://developer.android.com/training/sharing/receive

After receiving the text data, it will be written to the clipboard (if the text is a URL, it will be converted to Markdown hyperlink syntax [foo.com](foo.com) and written).

We will further consider receiving files from other apps and inserting them into the end of the selected document as assets. Please follow #12426

Thanks.

88250 added a commit to siyuan-note/siyuan-android that referenced this issue Sep 9, 2024
@88250 88250 closed this as completed Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants