Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save local variables in Android applications using WebView and HTML #538

Open
Alestore opened this issue Oct 2, 2022 · 6 comments
Open

Comments

@Alestore
Copy link

Alestore commented Oct 2, 2022

Just thinking if such a thing can be done. I tried with Appinventor 2 but it appears to be read only. Same thing for Android Studio by following the guide found in TurboWarp's Android support here on GitHub still being worked on.

@Alestore
Copy link
Author

Is there any chance of being able to do this? @GarboMuffin

@GarboMuffin
Copy link
Member

I'm putting this on the weekend to do list. Unfortunately Android is not something I have a lot of experience in, so I can't promise I'll figure anything out.

@Alestore
Copy link
Author

Alestore commented Oct 26, 2022

I'm putting this on the weekend to do list. Unfortunately Android is not something I have a lot of experience in, so I can't promise I'll figure anything out.

If you need more information, there is this Website 2 APK (https://websitetoapk.com/) that converts HTML projects into Android applications, and apparently saves Cloud variables as well. I don't know how it does it, maybe instead of using a WebView, a proprietary Browser opens inside the app and in doing so manages to save the data. The only limitation of this application is that in order to use it properly, especially to publish it on the play store simply to get an application key and rest, you have to pay $ 79 to $ 129 a year. Which is also a lot for what it has to do, which is to display an HTML, which I have already managed to do with Appinventor 2 and Android Studio, with the only problem of having to save the Cloud variables. If we don't find any solution, I think I'll temporarily opt for that as soon as I have the money to do it. Thanks as always for your work, and even if that is not the issue, now that I can I am going to support you by subscribing to you from GitHub or wherever I can do it for real money.

@GarboMuffin
Copy link
Member

I won't have access to a computer with Android Studio on it until this weekend, but it sounds like you have a local copy of something like #224. If you go into MainActivity and add web.settings.domStorageEnabled = true after web.settings.javaScriptEnabled = true, does it work?

@Alestore
Copy link
Author

I won't have access to a computer with Android Studio on it until this weekend, but it sounds like you have a local copy of something like #224. If you go into MainActivity and add web.settings.domStorageEnabled = true after web.settings.javaScriptEnabled = true, does it work?

I'll test this out later today or at least tomorrow and will let you know. Thanks again for your work!

@Alestore
Copy link
Author

Alestore commented Oct 26, 2022

@GarboMuffin it absolutely WORKS!

The last point to understand to launch Android "support" is #566

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants