Laverna / laverna

Laverna is a JavaScript note taking application with Markdown editor and encryption support. Consider it like open source alternative to Evernote.
https://laverna.cc/index.html
Mozilla Public License 2.0
9.19k stars 801 forks source link

How to use the offline modus on mobile devices #261

Open aptitude opened 9 years ago

aptitude commented 9 years ago

How do I use the offline modus?

On PC there is still the option for a laverna-static installation. But when I try to use Laverna on a mobile phone as offline web app, I only see the loading animation. Is there a way to use Laverna offline? (At least the feature list on github suggests so: "Manage your notes, even when you're offline").

Poorchop commented 9 years ago

How are you using Laverna on your phone? Are you building the mobile version?

Using Laverna offline is as simple as opening the index.html in your browser. Last time I checked, you don't even have to run a local server.

aptitude commented 9 years ago

Thank you very much for your feedback.

With Chrome the way described by you is working. (Even with the "Add to Home screen" option, which is really close to a native app.)

With a mobile firefox (which I used before) I just can see the loading animation while being offline.

Poorchop commented 9 years ago

I'm still not quite sure how you are accessing Laverna on your phone. Are you accessing the demo at laverna.cc and using that to add a shortcut to your home screen? That method shouldn't work offline in any browser (unless Chrome is somehow caching all of the contents).

If you are actually downloading a local copy of static-laverna and it's not working in a particular browser like Firefox, then you can find the error via remote debugging. It could be a CSP issue or something like that, but I never had any issues using Laverna offline in desktop Firefox, not sure about mobile.

aptitude commented 9 years ago

For PC I used the static version and it's working fine.

I am not sure how to use it offline on a phone. That's why I posted this question. (Is there an 'official' way?)

For my last answer I used the version from laverna.cc via chrome.

Poorchop commented 9 years ago

For my last answer I used the version from laverna.cc via chrome.

Then the only reason it's working offline for you in Chrome is probably because of caching. Adding a shortcut to your homescreen is essentially the equivalent of just creating a bookmark.

There is no "official" mobile solution as far as I'm aware, but you can build the mobile application yourself. Hopefully the developers will eventually release a mobile build themselves when they feel that it is ready.