fluttercommunity / plus_plugins

Flutter Community Plus Plugins
BSD 3-Clause "New" or "Revised" License
1.57k stars 949 forks source link

[Bug]: Connection status false even connected to Internet #1112

Closed vinay416 closed 1 year ago

vinay416 commented 2 years ago

Platform

Android 11/12/13, iOS 14/15/16

Plugin

Connectivity_plus

Version

2.3.7

Flutter SDK

2.10.1

Steps to reproduce

Leave the app in the background or lock the screen after a few hours it gives connectivity status false. Sometimes even app runs in foreground it gives a connectivity status false.

Code Sample

No response

Logs

/Applications/Xcode.app/Contents/Developer/Applications/Performance Tools
                        SYSTEM_DEVELOPER_RELEASENOTES_DIR = /Applications/Xcode.app/Contents/Developer/ADC
                        Reference Library/releasenotes
                        SYSTEM_DEVELOPER_TOOLS = /Applications/Xcode.app/Contents/Developer/Tools
                        SYSTEM_DEVELOPER_TOOLS_DOC_DIR = /Applications/Xcode.app/Contents/Developer/ADC
                        Reference Library/documentation/DeveloperTools
                        SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR =
                        /Applications/Xcode.app/Contents/Developer/ADC Reference
                        Library/releasenotes/DeveloperTools
                        SYSTEM_DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/usr
                        SYSTEM_DEVELOPER_UTILITIES_DIR =
                        /Applications/Xcode.app/Contents/Developer/Applications/Utilities
                        SYSTEM_DEXT_INSTALL_PATH = /System/Library/DriverExtensions
                        SYSTEM_DOCUMENTATION_DIR = /Library/Documentation
                        SYSTEM_EXTENSIONS_FOLDER_PATH = Toast.framework/SystemExtensions
                        SYSTEM_EXTENSIONS_FOLDER_PATH_SHALLOW_BUNDLE_NO =
                        Toast.framework/Library/SystemExtensions
                        SYSTEM_EXTENSIONS_FOLDER_PATH_SHALLOW_BUNDLE_YES = Toast.framework/SystemExtensions
                        SYSTEM_KEXT_INSTALL_PATH = /System/Library/Extensions
                        SYSTEM_LIBRARY_DIR = /System/Library
                        TAPI_ENABLE_PROJECT_HEADERS = NO
                        TAPI_VERIFY_MODE = ErrorsOnly
                        TARGETED_DEVICE_FAMILY = 1,2
                        TARGETNAME = Toast
                        TARGET_BUILD_DIR =
                        /Users/vinaysharma/projects/smart-home-app/build/ios/Release-iphonesimulator/Toast
                        TARGET_NAME = Toast
                        TARGET_TEMP_DIR =
                        /Users/vinaysharma/projects/smart-home-app/build/ios/Pods.build/Release-iphonesimulato
                        r/Toast.build
                        TEMP_DIR =
                        /Users/vinaysharma/projects/smart-home-app/build/ios/Pods.build/Release-iphonesimulato
                        r/Toast.build
                        TEMP_FILES_DIR =
                        /Users/vinaysharma/projects/smart-home-app/build/ios/Pods.build/Release-iphonesimulato
                        r/Toast.build
                        TEMP_FILE_DIR =
                        /Users/vinaysharma/projects/smart-home-app/build/ios/Pods.build/Release-iphonesimulato
                        r/Toast.build
                        TEMP_ROOT = /Users/vinaysharma/projects/smart-home-app/build/ios
                        TEST_FRAMEWORK_SEARCH_PATHS =
                        /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Develope
                        r/Library/Frameworks
                        /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Develope
                        r/SDKs/iPhoneSimulator16.0.sdk/Developer/Library/Frameworks
                        TEST_LIBRARY_SEARCH_PATHS =
                        /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Develope
                        r/usr/lib
                        TOOLCHAIN_DIR =
                        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
                        TREAT_MISSING_BASELINES_AS_TEST_FAILURES = NO
                        UID = 501
                        UNLOCALIZED_RESOURCES_FOLDER_PATH = Toast.framework
                        UNLOCALIZED_RESOURCES_FOLDER_PATH_SHALLOW_BUNDLE_NO = Toast.framework/Resources
                        UNLOCALIZED_RESOURCES_FOLDER_PATH_SHALLOW_BUNDLE_YES = Toast.framework
                        UNSTRIPPED_PRODUCT = NO
                        USER = vinaysharma
                        USER_APPS_DIR = /Users/vinaysharma/Applications
                        USER_LIBRARY_DIR = /Users/vinaysharma/Library
                        USE_DYNAMIC_NO_PIC = YES
                        USE_HEADERMAP = YES
                        USE_HEADER_SYMLINKS = NO
                        USE_LLVM_TARGET_TRIPLES = YES
                        USE_LLVM_TARGET_TRIPLES_FOR_CLANG = YES
                        USE_LLVM_TARGET_TRIPLES_FOR_LD = YES
                        USE_LLVM_TARGET_TRIPLES_FOR_TAPI = YES
                        USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES
                        VALIDATE_PRODUCT = YES
                        VALID_ARCHS = arm64 arm64e i386 x86_64
                        VERBOSE_PBXCP = NO
                        VERSIONING_SYSTEM = apple-generic
                        VERSIONPLIST_PATH = Toast.framework/version.plist
                        VERSIONS_FOLDER_PATH = Toast.framework
                        VERSIONS_FOLDER_PATH_SHALLOW_BUNDLE_NO = Toast.framework/Versions
                        VERSIONS_FOLDER_PATH_SHALLOW_BUNDLE_YES = Toast.framework
                        VERSION_INFO_BUILDER = vinaysharma
                        VERSION_INFO_FILE = Toast_vers.c
                        VERSION_INFO_STRING = "@(#)PROGRAM:Toast  PROJECT:Pods-1"
                        WRAPPER_EXTENSION = framework
                        WRAPPER_NAME = Toast.framework
                        WRAPPER_SUFFIX = .framework
                        WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES = NO
                        XCODE_APP_SUPPORT_DIR = /Applications/Xcode.app/Contents/Developer/Library/Xcode
                        XCODE_PRODUCT_BUILD_VERSION = 14A400
                        XCODE_VERSION_ACTUAL = 1401
                        XCODE_VERSION_MAJOR = 1400
                        XCODE_VERSION_MINOR = 1400
                        XPCSERVICES_FOLDER_PATH = Toast.framework/XPCServices
                        YACC = yacc
                        _WRAPPER_CONTENTS_DIR_SHALLOW_BUNDLE_NO = /Contents
                        _WRAPPER_PARENT_PATH_SHALLOW_BUNDLE_NO = /..
                        _WRAPPER_RESOURCES_DIR_SHALLOW_BUNDLE_NO = /Resources
                        arch = x86_64
                        variant = normal

                    Build settings for action build and target uni_links:
                        ACTION = build
                        AD_HOC_CODE_SIGNING_ALLOWED = YES

Flutter Doctor

[✓] Flutter (Channel stable, 2.10.1, on macOS 12.6 21G115 darwin-arm, locale
    en-IN)
    • Flutter version 2.10.1 at /Users/vinaysharma/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision db747aa133 (8 months ago), 2022-02-09 13:57:35 -0600
    • Engine revision ab46186b24
    • Dart version 2.16.1
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/vinaysharma/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      11.0.13+0-b1751.21-8125866)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • 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.13+0-b1751.21-8125866)

[✓] VS Code (version 1.71.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.48.0

[✓] Connected device (2 available)
    • iPhone 14 Pro (mobile) • 6E0EC89F-D0F6-4BAE-868C-D627202E411B • ios
      • com.apple.CoreSimulator.SimRuntime.iOS-16-0 (simulator)
    • Chrome (web)           • chrome                               •
      web-javascript • Google Chrome 105.0.5195.125

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

Checklist before submitting a bug

iamakhileshmishra commented 2 years ago

@miquelbeltran can you please assign this to me

miquelbeltran commented 2 years ago

See https://github.com/fluttercommunity/plus_plugins/issues/1108

We don't do ticket assignment/reservation.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days

anchals333 commented 1 year ago

I'm facing the same issue in android & iOS physical devices. This issue usually comes when we move the app from background to foreground then even the internet is connected the connectivity status returns none.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days