question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Weird behaviour on Android 12

See original GitHub issue

Platforms

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:closed
  • Created 2 years ago
  • Reactions:6
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

6reactions
matt-oakescommented, Nov 15, 2021

🎉 This issue has been resolved in version 6.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found