-
Notifications
You must be signed in to change notification settings - Fork 28
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
Web App in Airplane mode/offline state? #89
Comments
@bryan-lott thank you for the feedback, i am glad you're finding it useful. Here are some questions to help us try to diagnose what's going on. How do you know that the plotly + css files are not loading successful vs. some other issue? Is the zip file definitely unzipped? Do you know how to connect your phone over USB to your Chrome browser so we can see what errors there are in devtools? Another thing you could try is to transfer the slingcode.html file itself to your phone and run that, and then do the send/receive trick to transfer the app. Let me know how you go. |
Thanks for the detail, I will do some research on this and get back to you. |
@bryan-lott that According to Stackoverflow you should be able to unzip the files to the sdcard and load from there with a https://stackoverflow.com/questions/13332261/access-a-local-file-with-file-in-android https://android.stackexchange.com/questions/137128/using-chrome-to-access-html-files-on-android |
Fantastic, I managed to get it working with firefox and a file:///sdcard path (that then redirected to file:///storage/emulated/0...). Really appreciate you taking the time to help me out! |
@bryan-lott excellent, glad you found a way to make it work. I'd like to know more about this as it's a use-case I think is worth supporting and making smoother. Hope you don't mind if I ask a couple of questions. Was the default browser (presumably Chrome) able to load off the sd card or that just never worked? Did you already have Firefox installed or you had to install it to make this work? What is the workflow you are using - are you using the built in send/receive to get the app from laptop to phone and then exporting the zip from slingcode on the phone? What about running slingcode.html directly on the phone - I'd like to know the problems you encountered so I can make it easier. Thank you for any feedback you have! |
Browser behavior:
Workflow: Running slingcode.html "offline" locally:
Hope this helps! For context, I'm working on a offroad recovery force calculator since the one I used to use no longer shows up in the play store. The offline functionality is required since whenever I'm doing offroad recovery work, we usually rarely have cell service! :) Have tried a few "app builders" but yours is the first to actually work while in airplane mode |
@bryan-lott I've been doing some reading up on this and these are some different locations that have worked for people using Chrome on Android:
Note that these both have two slashes only after the References: |
@bryan-lott when you are running "offline" locally and downloading the slingcode HTML, what OS is that on? Windows? Thanks very much for all this info, really helps me get some sense of what might be useful to focus on for this use-case. |
Thanks for those! I'll give them try later today when I get a chance. I've been using OSX for running offline/downloading locally. |
|
Hi, first off, love the app, this is amazing as a non-webdev™️ that I can get a web app up and running in a couple minutes!
Second, I'm having trouble getting (my hacked up version of) the Savings Calculator working on my android phone. I'd like it to work when I no service (think airplane mode) and the style sheets and plotly are linked from other sites. What I did to solve this is:
I can provide the relevant app/snippets if you need them to debug.
The text was updated successfully, but these errors were encountered: