How do you save locally when using a browser?

I am trying to use tiddlywiki on a phone, tablet and PC and am having difficulty wrapping my head around the use/save mechanism.

I have no problems if I work/use a wiki (using tiddloid or tiddly desktop as the wiki is set for local save) then save it as well to tiddlyhost on android or windows so that I can pull it across to any device as required. There doesn’t seem to be an equivalent for any of those apps on apple which is a problem - see below.

Where I run into the problem and where the confusion comes from is if I open the wiki into a browser in any of the OSs but for my use case iOS is the real problem here as the wiki is meant to be used and saved in real time from my phone. I can’t figure out how to save the changes and worse if the browser is on android or apple and the focus changes away from the browser for eg the screen saver happens, then I lose my changes because the browser page refreshes.

Any ideas out there? Need anymore info for this to make better sense?

Regards
Sher

I’m not an apple guy, so excuse me if my answer seems misplaced.

Have you seen this? https://tiddlywiki.com/#Saving%20on%20iPad%2FiPhone

I don’t understand your comments about browser focus and android. If you’re using tiddloid, what browser focus?

The general rule for the use of tiddlywiki on phones and other portable devices such as iPhone and Android is through an

  • app or
  • to a internet hosted eg; tiddlyhost.

I believe the key option for IOS is the “Quine app”. For iOS see https://tiddlywiki.com/#GettingStarted and select iOS

The key alternative is to use other apps to install a node version of tiddlywiki “server” on your device. I have used Termux on Android, then the server is hosted on the phone. Something similar should be possible on iOS.

Thanks for your response Mark.

First browser focus:
if you do not enter anything into a displayed page, can be as simple as simply tapping the screen, the OS “times out” and darkens the screen or starts a screens saver. What I have noticed in this case (i.e. anything other than my wiki showing on the screen) is that when I get the OS to display the page again it refreshes it and any changes are lost. It does not matter what browser I use - Safari, Chrome, Firefox or Brave. This kind of kills my use case as I am making and changing data via the wiki in real time.

Quine was an interesting idea that I did know about but my phone OS is 12.5.5 and Quine 2 is incompatible with it (>=15 if I recall correctly) and I can not find the original Quine which I assume would work on release 12.

Any other Ideas are welcome.

I have figured out for android that I can save within the browser if I am willing to accept that every save will result in a new copy of the file with an incremental name change - which I can live with - though on android I simply use the tiddloid app not a browser which works fine for my use case. My apple phone iPhone 6 (yep old tech:-) ) remains the real problem. Can not figure out how to make changes and save regardless of browser used and do not know of an app equivalent to tiddloid.

Regards
Sher

I just did a quick test, using tiddlyhost with the local storage plugin. Android FireFox, It saves locally (browser storage) you can make changes while off line (flight mode), close the tab and return to the wiki and still have your unsaved changes waiting. As soon as you are online again you can save, and release your need for local storage.

Just to help stop me editing the same wiki from one device before changes are saved from another device (like the desktop) I plan to make a little switch that indicates which device currently “owns” the wiki. I may be able to semi-automate this because I can detect if it is the mobile or desktop using the screen size settings see [prefix[$:/Info]] in shadows.

1 Like

The Browser Sniff plugin can detect firefox and android vs Chrome is the browser allowing me to automatically detect the “browser/device in use”.

Also careful use of of a href with a custom target will ensure I only open the one tab with my wiki in a given browser.

I will post more here as I progress if you want?