I exported the JEX file of all notes from my PC and imported the JEX file to my iPhone. The import went well but there were some errors "Could not find resource file: /var/mobile/Containers/Data/Application/".
I proceeded to then sync my iPhone to Onedrive, which is the sync target for Joplin PC.
Afterwards, I notice there are duplicates of each notebook and note =/
How do I remove all duplicates?
What would be a good way to import all notes into an iPhone? Syncing would take too long and tends to fail after awhile.
On your device with the duplicates, delete everything and re-import the jex. Then on your other devices run the sync and let it complete. You can’t avoid the long sync time now that you already duplicated the notes by importing a jex file when you did not need to
EDIT: Actually you say there were some issues with the attachments on your phone, you should try to sort that out before deleting everything and restoring the backup. On the desktop app, make a backup of the ~/.config/joplin-desktop directory before deleting anything, as you can get attachments from there worst case, if something is lost
I see, I did not know importing the JEX file will cause this issue. I simply wanted to import all notes to iOS app in a fast way rather than syncing which will take a long time.
I copied the joplin-desktop directory to another PC and it worked well, so I assumed JEX file would work the same with iOS app.
I wish for that feature too. Technically the desktop and mobile profiles are compatible with any platform (with a slight change in file structure between desktop and mobile), but unfortunately unless you have rooted your phone, there is no way to get the desktop profile onto a mobile device
I resolved the duplicate notes issue by deleting all notes from my Onedrive folder, and then import the backup JEX file to each PC. For iOS mobile, I relied on sync which took about 2 hours to complete.
I think it will be great to alert users on the risk of importing JEX files to a new device and then syncing it with other devices, as it will cause duplicates.