codefrau / SqueakJS

A Squeak Smalltalk VM in Javascript
https://squeak.js.org
MIT License
364 stars 75 forks source link

File storage when added to Home Screen on iOS #149

Open BwenedianJr opened 9 months ago

BwenedianJr commented 9 months ago

Hi, Recently, I wanted to make a GitHub to embed this squeaks image https://squeak.js.org/run/#image=https://github.com/NoMod-Programming/Whiskers/raw/master/Build/Whiskers.image into the GitHub page to add to my homescreen. But, html iframes don’t save Progress, and using the scratch source doesn’t work because I can’t download squeak. What do I do?

BwenedianJr commented 9 months ago

My project is here: https://bwenedianjr.github.io/scratch2/ As you can see, it remembers your progress fine in the web browser, but it doesn’t when you add to your Home Screen. The only way to save on Home Screen is to save the project, quit scratch, and then download the file wich takes a long time.

BwenedianJr commented 9 months ago

Hello?

codefrau commented 9 months ago

You mean saving the project as a file and then loading it the next time, right? And this is on iOS or iPadOS after saving your web app to the home screen.

Yeah I'm not sure why that does not last until the next launch with your app ...

When I try it with my Scratch, the project file will still be there (but I also get an error that says file is damaged). So there definitely is a bug somewhere.