-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed as not planned
Closed as not planned
Copy link
Labels
HacktoberfestIssues taking part in HacktoberfestIssues taking part in HacktoberfestStalebugSomething isn't workingSomething isn't workingconnectivity_plusConnectivity PlusConnectivity Plusios
Description
System info
Platform the Issue occurs on: iOS
Plugin name: connectivity_plus
Plugin version: 2.2.1
Steps to Reproduce
Demo code increments counter when connection is changed to Wifi.
Link to gist
- Run the gist code on a simulator or real device
When the app is opened the onConnectivityChanged emits two events instead of just one. On Android it correctly emits just one event. I'm guessing this can be a bug on the iOS.
The video attached is the release build of the demo gist on a iPhone 8
Since, there are 2 events emitted the counter increments 2 times if WiFi is turned on and 2 is displayed when the app is opened. There are 2 events emitted even if Wifi and Data is turned off.
Expected: Only one event should be emitted.
RPReplay_Final1647367059.1.1.mp4
Running in debug mode on iOS Simulator.
"Got a new connectivity status! ::wifi" is printed twice.
Logs
Launching lib/main.dart on iPhone SE (3rd generation) in debug mode...
Running Xcode build...
└─Compiling, linking and signing... 3.5s
Xcode build done. 9.6s
flutter: initState
flutter: Got a new connectivity status! ::wifi
flutter: Got a new connectivity status! ::wifi
Syncing files to device iPhone SE (3rd generation)... 214ms
Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).
💪 Running with sound null safety 💪Flutter doctor output
✓] Flutter (Channel stable, 2.10.3, on macOS 12.2.1 21D62 darwin-x64, locale en-CA)
• Flutter version 2.10.3 at /Users/calvin.gonsalves/Desktop/development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 7e9793dee1 (13 days ago), 2022-03-02 11:23:12 -0600
• Engine revision bd539267b4
• Dart version 2.16.1
• DevTools version 2.9.2
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/calvin.gonsalves/Library/Android/sdk
• Platform android-31, build-tools 31.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
[✓] VS Code (version 1.65.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.37.20220301
[✓] Connected device (1 available)
• Chrome (web) • chrome • web-javascript • Google Chrome 99.0.4844.51
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
kuhnroyal, luis901101 and rvamsikrishnaburcus
Metadata
Metadata
Assignees
Labels
HacktoberfestIssues taking part in HacktoberfestIssues taking part in HacktoberfestStalebugSomething isn't workingSomething isn't workingconnectivity_plusConnectivity PlusConnectivity Plusios