plus_plugins icon indicating copy to clipboard operation
plus_plugins copied to clipboard

[Bug]: onConnectivityChanged stream does not emit VPN status on Xiaomi/Realme UI Android 14 devices

Open boyallex opened this issue 2 months ago • 0 comments

Platform

Android 14 (RMX3890) Xiaomi/Realme UI

Plugin

connectivity_plus

Version

7.0.0

Flutter SDK

3.38.3

Steps to reproduce

  1. Start the app while Wi-Fi + VPN are enabled.

  2. Turn VPN off → the stream correctly emits an update (Wi-Fi only).

  3. Switch from Wi-Fi to Mobile Data → the stream correctly emits a mobile data state.

  4. Turn VPN on again → no VPN event is emitted in the onConnectivityChanged stream.

With VPN still enabled, switch from Mobile Data back to Wi-Fi → the stream emits the Wi-Fi state, but VPN is still not detected.

Image

Image

Image

![Image](https://github.com/user-attachments/ass

flutter_run_log.txt

ets/f08905d0-a01e-488f-ba9d-5a13c589b9fb)

Code Sample

Test on plugin example app.

Logs

Logs is too long, there is no error in.
Add logs file in description.

Flutter Doctor

[✓] Flutter (Channel stable, 3.38.3, on macOS 15.7.2 24G325 darwin-arm64 (Rosetta), locale ru-RU)
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 26.0.1)
[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google
    Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Connected device (2 available)
    ! Error: Browsing on the local area network for iPhone (Илия). Ensure the device is unlocked and attached
      with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources

Checklist before submitting a bug

  • [x] I searched issues in this repository and couldn't find such bug/problem
  • [x] I Google'd a solution and I couldn't find it
  • [x] I searched on StackOverflow for a solution and I couldn't find it
  • [x] I read the README.md file of the plugin
  • [x] I'm using the latest version of the plugin
  • [x] All dependencies are up to date with flutter pub upgrade
  • [x] I did a flutter clean
  • [x] I tried running the example project

boyallex avatar Dec 01 '25 08:12 boyallex