-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
Cannot access app offline after hard close #1566
Comments
Same behaviour observed here. |
Seems to work fine for me on Samsung SIII:
|
Let me try adding a family... |
Are you turning off the 802.11 and cellular radios entirely, or just disabling data? |
I'm turning off wifi; no SIM card present. Working on |
Adding family works fine too. I turned off/disabled wifi and mobile data. That doesn't turn off cell radio completely but disables data functionality. I can try airplane mode too... |
Experience in airplane mode was equivalent (basic testing worked). |
@mandric, what chrome/webview version do you have on the S3? |
SAMSUNG-SGH-I747 |
Sorry let me clarify, this testing was using the livinggoods app (branded app) built from latest medic-android and using a fixed_app_url (in src/livinggoods/res/values/strings.xml) of https://lg.app.medicmobile.org. |
If you open the Chrome remote debugger with the error page pulled up and the phone offline, doing the following on the Javascript console seems to get the app to start: window.location = 'https://lg.app.medicmobile.org/medic/_design/medic/_rewrite/'; Is it possible that the container application just needs a trailing slash on the default URL? That's obviously not the correct™ fix, but might point us to an issue with base URL handling in the app. |
Verified this works from the app store now:
|
@mandric, I followed your directions on my Y4 and see this at step 7: |
OK @joshnesbit re-opening. Surprised because the trailing slash shows up in the error too. |
Anyone else with a Y4 want to give this a test? |
Hey @mandric, this is strange! I just got this to work three times in a row on my Y4. The app loads and works fine after a hard close. The screenshot above was what I saw 3 hours ago – but it's working now. |
Yeah that is strange, especially because the error showed the trailing slash. I thought maybe you got an old build somehow but on the old builds the error was without the trailing slash. Maybe we'll try to reproduce on more devices and maybe should add some logging if it continues. |
(closed in error - waiting for code review) |
Assigned to @estellecomment for code review. |
That added slash LGTM. Thankfully 3 months was enough code review time to be really sure of it. |
This is working well after having tried disabling data connection both before and after hard-closing the app. Moving to Ready. |
Quoting @joshnesbit from #1343 (comment):
When I test this I get
Webpage not available
.The text was updated successfully, but these errors were encountered: