Weird behaviour on Android 12
See original GitHub issuePlatforms
Android 12
Versions
- Android: Android 12 (API 31)
- react-native-netinfo: 6.0.2
- react-native: 0.65.1
- react: 17.0.2
Description
On Android 12 devices when subscribing to Netinfo at first everything is correct and it shows device’s wifi connection but then after a few seconds I receive several callbacks at once with the following body even though the connection has not been actually lost.
{"details": {}, "isConnected": false, "isInternetReachable": false, "isWifiEnabled": true, "type": "none"}
Happens both in emulators & real devices in different environments and different users have reported that the app displays internet connection warning even though it still has connection.
Reproducible Demo
Use following subscription and run app on Android 12:
NetInfo.addEventListener((state) => { console.log(state); });
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Behavior changes: all apps - Android Developers
The Android 12 platform includes behavior changes that may affect your app. The following behavior changes apply to all apps when they run...
Read more >Google Pixel Android 12 bugs, problems, & issues tracker ...
Here are all the Google Pixel Android 12 update bugs, problems, & issues that've been reported, fixed, or acknowledged (workarounds inside).
Read more >Android 12: weird behavior to access app drawer - Reddit
One & only disappointment i have toward Android 12 is that I can't Swipe up from active app to access the app drawer...
Read more >Pixel 6 Pro: out of pocket mode weird behavior - Google Support
Pixel 6 Pro: out of pocket mode weird behavior ... It's been happening from Android 12, and Android 13 has not fixed it....
Read more >Strange behaviour in Android 12+ with WallpaperManager
Strange behaviour in Android 12+ with WallpaperManager · 1. I've never done anything with wallpaper, but this sounds similar to a question I ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
🎉 This issue has been resolved in version 6.2.1 🎉
The release is available on:
Your semantic-release bot 📦🚀
Here we go: https://github.com/react-native-netinfo/react-native-netinfo/pull/510