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

Enable for mobile #13

Open
piranha opened this issue Jul 23, 2021 · 3 comments
Open

Enable for mobile #13

piranha opened this issue Jul 23, 2021 · 3 comments

Comments

@piranha
Copy link

@piranha piranha commented Jul 23, 2021

Hey! This plugin is enabled for desktop only right now. Do you think it's possible to enable it for mobile app? :)

@gavvvr
Copy link
Owner

@gavvvr gavvvr commented Jul 23, 2021

Hi @piranha. I tried it on mobile by manually uploading it to mobile vault and changing isDesktopOnly in manifest, but it does not work "as-is".
This plugin uploads images on:

  • "drag" (when you use drag-and-drop) and
  • "paste" (when you paste from the clipboard buffer) events

On mobile you are also allowed to add images from the gallery to your note. But looks like none of those events are used.
I posted a quick question on Discord about how it works, but the question left unanswered.

So, in short:

  • you can attach images from the gallery on mobile
  • so I think there must be a way to override the default behaviour and perform remote upload instead. But for now I do not know which event is involved into this process ​

When I developed for desktop, there was a Chrome console which helped me a lot. For mobile, I do not know yet how to easily debug. There was a message in the chat on how to connect to remote console, but I haven't tried that yet.

Do you know if copy-paste is available for images on mobile platforms? I have an Android phone. I have a "Copy" context menu option in Chrome browser. When I go to Obsidian, and try to "Paste", simply nothing happens. At the same time if I go to Telegram and Paste the image previously copied from Chrome, it works! I think Obsidian for Android does not handle paste event as we and the current implementation of imgur plugin expects.
If you have an iOS device, please let me know if you can copy/paste images there (with other, more mature apps) and if Obsidian can handle it or not

@piranha
Copy link
Author

@piranha piranha commented Jul 23, 2021

Yeah, I have an iOS device and nothing happens. I also installed an iPad version on macOS and nothing happens on pasting an image there. So I guess mobile app has no support for pasting anything but text right now.

@gavvvr
Copy link
Owner

@gavvvr gavvvr commented Jul 24, 2021

Tried with iPhone too -> same result. Nothing happens on "paste" context menu item.

I created the feature request on Obsidian forums to support "pasting" images on mobile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants