fluttercommunity / flutter_workmanager

A Flutter plugin which allows you to execute code in the background on Android and iOS.
851 stars 260 forks source link

🐞[Background handler is disabled] #460

Closed hawkkiller closed 1 year ago

hawkkiller commented 1 year ago

Version

Technology Version
Workmanager version 0.5.1
Xcode version 14.2
Swift version 5.0
iOS deployment target 11.0

Describe the error Background handler is disabled. This message is printed after each xCode's Debug -> Simulate Background Fetch. However, it successfully works on bare application. Maybe, there are some env. conditions or settings of project in xCode or Pods somehow affect this

$ flutter doctor -v

[βœ“] Flutter (Channel stable, 3.7.0, on macOS 13.0.1 22A400 darwin-arm64, locale en-UA) β€’ Flutter version 3.7.0 on channel stable at /Users/mihail/Developer/flutter β€’ Upstream repository https://github.com/flutter/flutter.gi t β€’ Framework revision b06b8b2710 (5 weeks ago), 2023-01-23 16:55:55 -0800 β€’ Engine revision b24591ed32 β€’ Dart version 2.19.0 β€’ DevTools version 2.20.1

[βœ“] Android toolchain - develop for Android devices (Android SDK version 33.0.0) β€’ Android SDK at /Users/mihail/Library/Android/sdk β€’ Platform android-33, build-tools 33.0.0 β€’ Java binary at: /Users/mihail/Library/Application Support/JetBrains/Toolbox/apps/Androi dStudio/ch-0/212.5712.43.2112.8815526 /Android Studio.app/Contents/jre/Contents/Home /bin/java β€’ Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840) β€’ All Android licenses accepted.

[βœ“] Xcode - develop for iOS and macOS (Xcode 14.2) β€’ Xcode at /Applications/Xcode.app/Contents/Deve loper β€’ Build 14C18 β€’ CocoaPods version 1.11.3

[βœ“] Chrome - develop for the web β€’ Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[βœ“] Android Studio (version 2021.2) β€’ Android Studio at /Users/mihail/Library/Application Support/JetBrains/Toolbox/apps/Androi dStudio/ch-0/212.5712.43.2112.8815526 /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.12+0-b1504.28-7817840)

[βœ“] VS Code (version 1.75.1) β€’ VS Code at /Applications/Visual Studio Code.app/Contents β€’ Flutter extension version 3.58.0

[βœ“] Connected device (4 available) β€’ iPhone (ΠœΠΈΡ…Π°ΠΈΠ») (mobile) β€’ 00008110-001C48A81139801E β€’ ios β€’ iOS 16.2 20C65 β€’ iPhone 14 Pro Max (mobile) β€’ 681CBF07-7B40-4EF9-B4DF-30A976C1BA3B β€’ ios β€’ com.apple.CoreSimulator.SimRuntime.iO S-16-2 (simulator) β€’ macOS (desktop) β€’ macos β€’ darwin-arm64 β€’ macOS 13.0.1 22A400 darwin-arm64 β€’ Chrome (web) β€’ chrome β€’ web-javascript β€’ Google Chrome 110.0.5481.177 ! Error: Apple Watch β€” ΠœΠΈΡ…Π°ΠΈΠ» needs to connect to determine its availability. Check the connection between the device and its companion iPhone, and the connection between the iPhone and Xcode. Both devices may also need to be restarted and unlocked. (code 1)

[βœ“] HTTP Host Availability β€’ All required HTTP hosts are available

~/work/purple plane/AIMOTO_KIDS on ξ‚  background-rework! ⌚ 13:42:04 $ flutter doctor -v [βœ“] Flutter (Channel stable, 3.7.0, on macOS 13.0.1 22A400 darwin-arm64, locale en-UA) β€’ Flutter version 3.7.0 on channel stable at /Users/mihail/Developer/flutter β€’ Upstream repository https://github.com/flutter/flutter.git β€’ Framework revision b06b8b2710 (5 weeks ago), 2023-01-23 16:55:55 -0800 β€’ Engine revision b24591ed32 β€’ Dart version 2.19.0 β€’ DevTools version 2.20.1

[βœ“] Android toolchain - develop for Android devices (Android SDK version 33.0.0) β€’ Android SDK at /Users/mihail/Library/Android/sdk β€’ Platform android-33, build-tools 33.0.0 β€’ Java binary at: /Users/mihail/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/212.5712.43. 2112.8815526/Android Studio.app/Contents/jre/Contents/Home/bin/java β€’ Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840) β€’ All Android licenses accepted.

[βœ“] Xcode - develop for iOS and macOS (Xcode 14.2) β€’ Xcode at /Applications/Xcode.app/Contents/Developer β€’ Build 14C18 β€’ CocoaPods version 1.11.3

[βœ“] Chrome - develop for the web β€’ Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[βœ“] Android Studio (version 2021.2) β€’ Android Studio at /Users/mihail/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/212.5712.43. 2112.8815526/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.12+0-b1504.28-7817840)

[βœ“] VS Code (version 1.75.1) β€’ VS Code at /Applications/Visual Studio Code.app/Contents β€’ Flutter extension version 3.58.0

[βœ“] Connected device (4 available) β€’ iPhone (ΠœΠΈΡ…Π°ΠΈΠ») (mobile) β€’ 00008110-001C48A81139801E β€’ ios β€’ iOS 16.2 20C65 β€’ iPhone 14 Pro Max (mobile) β€’ 681CBF07-7B40-4EF9-B4DF-30A976C1BA3B β€’ ios β€’ com.apple.CoreSimulator.SimRuntime.iOS-16-2 (simulator) β€’ macOS (desktop) β€’ macos β€’ darwin-arm64 β€’ macOS 13.0.1 22A400 darwin-arm64 β€’ Chrome (web) β€’ chrome β€’ web-javascript β€’ Google Chrome 110.0.5481.177 ! Error: (null) needs to connect to determine its availability. Check the connection between the device and its companion iPhone, and the connection between the iPhone and Xcode. Both devices may also need to be restarted and unlocked. (code 1)

[βœ“] HTTP Host Availability β€’ All required HTTP hosts are available

β€’ No issues found!

hawkkiller commented 1 year ago

There was a conflict with flutter_background_handler. There was such a library before.