window.addEventListener('offline') does not get fired on Android
Nobody has claimed this yet.
- Dominant language
- Objective-C++
- Stars
- 2.7k
- Forks
- 734
- Avg merge
- 11h 39m
- Merged PRs (30d)
- 1
Description
We are facing an issue with our React / Android application on Unity-Webview. We are trying to implement an offline alert when the user loses internet connection. The alert works as expected when running the app locally, but when we build it for Android, the online/offline events are not being fired. Specifically, the following code is not working:
window.addEventListener("online", handleOnline);
window.addEventListener("offline", handleOffline);
Anyone have any luck getting an offline/online listener working?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no repository files or tests. Start by reproducing the online/offline listener behavior in the React application inside the Android Unity-Webview, then trace how connectivity events are exposed there; done means both events reliably invoke their handlers in the Android build.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, javascript, react, unity
- Domain
- mobile-dev, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100