Code Monkey home page Code Monkey logo

Comments (23)

maestromac avatar maestromac commented on June 1, 2024 3

Thanks for those infos @samfcmc . I've verified that this is indeed caused by Service Worker; It is being too aggressive with offline page. I will be deploying a tweak via the web app.

from dev-android.

maestromac avatar maestromac commented on June 1, 2024 3

It seems like the fix was rolled out yesterday by the Chromium team and it will take a few days for everybody to receive it. If you are still hitting the offline page upon start, clearing the cache once or twice should resolve the it as per Chromium team's suggestion.

I am keeping an eye on it if to see if there's any further action we need to take.

from dev-android.

joshuadeguzman avatar joshuadeguzman commented on June 1, 2024 1

This issue is reproducible by following these steps:

  1. Open the app.
  2. Turn off wifi / data
  3. Open the app again

You will see the error screen.

A workaround to get over it:

  1. Go to Settings
  2. Clear Data of DEV.to app
  3. Open App

Willing to take a look on this and check viable fix if no one will claim the ticket. Seems to be critical.

@maestromac

from dev-android.

samfcmc avatar samfcmc commented on June 1, 2024 1

@joshuadeguzman I don't need to turn off WiFi or data. After I closed it, it becomes unusable. I am closing it by touching the "Overview" on the bottom side of my phone and force the app to close. Then, I have to delete the app data to be able to use it again.

from dev-android.

msfjarvis avatar msfjarvis commented on June 1, 2024 1

I'm aware. I saw Mac land a Service Worker update in master (forem/forem@0af2a0a) which was why I said what I did.

from dev-android.

maestromac avatar maestromac commented on June 1, 2024 1

Judging by the bug's sudden appearance and how it's also affecting Facebook's browser & DuckDuckGo browser, I believe this is a chromium bug https://bugs.chromium.org/p/chromium/issues/detail?id=977784

Additional refs:
https://stackoverflow.com/questions/56681774/update-service-worker-in-facebook-browser
https://stackoverflow.com/questions/56719340/fetch-request-immediately-failing-in-service-worker-running-through-android-we
The patch:
https://chromium-review.googlesource.com/c/chromium/src/+/1675358

from dev-android.

sierisimo avatar sierisimo commented on June 1, 2024 1

Haven't faced the issue in a while… is still a thing?

from dev-android.

maestromac avatar maestromac commented on June 1, 2024

Thanks for the error report @samfcmc . Can you try uninstalling and reinstalling the app? Let me know if the error still persist.

from dev-android.

justinenz avatar justinenz commented on June 1, 2024

Describe the bug
I have the same bug as @samfcmc

To Reproduce
Unsure, seems to have started on its own?

Expected behavior
Show the dev.to feed

Smartphone (please complete the following information):

Device: Samsung Galaxy Note 9
OS: Android
Version 9.0.0

Additional context
dev.to app version: 1.2
dev.to Beta: No

First attempt at resolving
Force closed dev.to app
Cleared dev.to app cache
Opened dev.to app
Results: offline screen persisted

Second attempt at resolving
Force closed dev.to app
Cleared dev.to app cache
Cleared dev.to app data
Opened dev.to app
Initial results: feed was shown
Closed dev.to app
Opened dev.to app
Final results: offline screen returned

Third attempt at resolving
Uninstall dev.to app
Install dev.to app
Opened dev.to app
Initial results: feed was shown
Closed dev.to app
Opened dev.to app
Final results: offline screen returned

from dev-android.

samfcmc avatar samfcmc commented on June 1, 2024

I reinstalled the app. I was able to login and see the feed. Later on, when I try to open the app again, the offline screen returns. I can only see the feed the first time I use it after installing the app.

from dev-android.

maestromac avatar maestromac commented on June 1, 2024

I'm experiencing this issue too now. I'm going out of the limb to say that this is most likely caused by Service Worker.

from dev-android.

irshsheik avatar irshsheik commented on June 1, 2024

Same here. OnePlus 3t.

from dev-android.

msfjarvis avatar msfjarvis commented on June 1, 2024

Exact same behaviour as @samfcmc, had to clear data to regain functionality. Appears the fix didn't work?

from dev-android.

sierisimo avatar sierisimo commented on June 1, 2024

The fix to this has to be achieved in the web team. For android the things we can achieve require to know the explicit URL or check on every launch for a reload of the webview.

Doing the reload of the webview will lead to more issues than the fix from the webworker

from dev-android.

maestromac avatar maestromac commented on June 1, 2024

Yep the fix will have to be done on the web app. I'm channeling the conversation to here for the time being since I see higher occurrence through the mobile app.

At the moment, I can't seem to reproduce the error at all on my OnePlus 6T Android 9.0.14. Perhaps using both WebViewClient and WebChromeClient is causing some conflict with SW? Whatever it is, it is causing fetch to fail immediately despite having a connection. The most drastic solution that might need to happen is to turn off Service Worker for mobile.

from dev-android.

msfjarvis avatar msfjarvis commented on June 1, 2024

Clearing cache seems to have resolved the problem on my end. Will be on the lookout for Chrome updates on my devices.

from dev-android.

 avatar commented on June 1, 2024

I cleaned the cache and reinstalled the app. It opened fine. I did not log in and the 2nd time around it was offline again.
Android 9 on Moto X4

from dev-android.

msfjarvis avatar msfjarvis commented on June 1, 2024

Haven't hit this again in the past week

from dev-android.

maestromac avatar maestromac commented on June 1, 2024

Are you still experiencing this issue @neex-io ?

from dev-android.

msfjarvis avatar msfjarvis commented on June 1, 2024

And right on cue, stuck on offline page again 🤐

Edit: Force stop fixed it for some reason...

from dev-android.

msfjarvis avatar msfjarvis commented on June 1, 2024

Can confirm the issue hasn't showed up since my last comment.

from dev-android.

maestromac avatar maestromac commented on June 1, 2024

Thank you for the update.

This issue is resolved

from dev-android.

AhsabAli2000 avatar AhsabAli2000 commented on June 1, 2024

This is happening today too on desktop brave

from dev-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.