hans / obsidian-citation-plugin

Obsidian plugin which integrates your academic reference manager with the Obsidian editor. Search your references from within Obsidian and automatically create and reference literature notes for papers and books.
MIT License
1.11k stars 83 forks source link

The plugin fail to load in Obsidian iPad #118

Open torralbofco opened 3 years ago

torralbofco commented 3 years ago

Describe the bug The plugin fails to load in iPad and it gets automatically deactivated. As a consequence, I need to activate again when open Obsidian in a computer.

To Reproduce Open Obsidian in iPad with obsidian-citation-plugin active.

Expected behavior The plugin should loads correctly in iPad so it can be used. Regarding the bibtex file, it is is saved inside the vault so the path to load the librariy could be set relative to the vault. If the plugin is unable to work in an iPad then the plugin should detect that Obsidian is open in an iPad and stop try to load itself. The plugin should be active in a computer after using Obsidian in an iPad.

Platform

Additional context Add any other context about the problem here.

amglez commented 3 years ago

Same thing with Android, Samsung tab, Android 9

jncomas commented 3 years ago

Comfirmed – ipadOS 15.1.

danieltomasz commented 3 years ago

The plugin might be using API that is not available in the mobile app, but only with electron desktop version. I hope though that it might be ported to mobile!

carl10999 commented 3 years ago

confirmed - iOS 14.8 (iPhone)

xiumuyo commented 2 years ago

the plugin failed to be loaded on ios 15.1 too...

aliaksei135 commented 2 years ago

I've pulled some logs using obsidian-mobile-logging on Android 12.0, Obsidian 1.0.5, plugin 0.4.4. The relevant line is:

[error] Plugin failure: obsidian-citation-plugin TypeError: Cannot read properties of undefined (reading 'sep') 

Looks like an error determining the path separator. Hope this helps

careilly commented 2 years ago

Having done some looking into this, the problem seems to be dependence on Node.js libraries that aren’t available on mobile, so it would need a significant refactor to remove those.

xllowl commented 2 years ago

On the ipad, it seemed to export a Citation Style language data format from the zotero website. Then, using the shortcut to deal with the file.This may useful before the bug fix. https://www.icloud.com/shortcuts/94841845ec0d4158bd6aed03b41493a6

careilly commented 2 years ago

Looks like the development version marks itself as desktop only, so we may need work arounds for a while.

hans commented 2 years ago

Hi, a mobile version is beyond my development capacity right now -- but if someone is interesting in contributing and testing with their iOS device, I'd be glad to accept contributions.

FeralFlora commented 1 year ago

On the ipad, it seemed to export a Citation Style language data format from the zotero website. Then, using the shortcut to deal with the file.This may useful before the bug fix. https://www.icloud.com/shortcuts/94841845ec0d4158bd6aed03b41493a6

@xllowl Thanks for providing this Shortcut. Could you perhaps explain how to use it a bit more? I assume I need to supply a .bib file, right?