Hi! Im basically trying to make a one time welcome help screen. I was thinking at the end of the “tutorial” I would make a persistent change in the app that allows users too go directly to the app the next time.
So writing something to a file might be the right answer but Im open for other solutions.
However if writing something to a file so the app knows to skip the tutorial is the right answer, the two different modules seem to do the same thing (though filesystem adds more functionality I guess), is there any benefit of choosing one over the other in my case?
writing something [useful] to a local file is, indeed, the suggested solution for that challenge.
As for choosing the right module, prefer FileSystem over Storage, because FileSystem API will be receiving more care in the future and simply is better.
I would personally store JSON data structures in such files, mostly because it’s easy to read/write and work with them. And then it makes sense that you call it appname.json, for example.
This is just a personal preference though, so go wild
By restarting the app, do you mean running fuse build --target=Android --run again, or closing and starting the app again on the mobile device?
It is expected that the FileSystem.dataDirectory is wiped between builds, but not when simply restarting the app on the mobile device. If the latter is the case, then there’s definitively something wrong going on.