http://qs321.pair.com?node_id=1095686


in reply to Using Perl to access notes/memos on my mobile

For text-only, you could also store the notes in localStorage (or even localForage) and use (say) Server-Sent Events to reconnect from the web page to the server automatically and synchronize the notes.

The harder part of this would be to wrap the HTML page in an "app" that can also run and synchronize in the background without needing the browser open.

Personally, I've used an IMAP server together with the K9 mail application for storing notes. It's a simple protocol that knows how to deal with network interruptions.

Replies are listed 'Best First'.
Re^2: Using Perl to access notes/memos on my mobile (localStorage / mail client)
by LanX (Saint) on Aug 01, 2014 at 22:39 UTC
    Hi Corion

    Thanks for pointing me to localStorage, it works quite well in Firefox and default browser (tested it with 2048 game webpage ;-)

    > ... without needing the browser open.

    True but ATM I'd prefer to see conflicts ASAP, so initiating a synchronization manually from HTML seems reasonable.

    > K9 mail application

    wow, thanks for showing me K9, nice client! :)

    > It's a simple protocol that knows how to deal with network interruptions.

    Indeed, that's also the way I'm going now! :)

    I need a working solution ASAP, but localStorage is a technology I'll certainly can use in future projects!

    Cheers Rolf

    (addicted to the Perl Programming Language and ☆☆☆☆ :)