🐞Tasks do not run on iOS at all
SticksDev opened this issue · comments
- I have read the README
- I have done the setup for Android
- I have done the setup for iOS
- I have ran the sample app and it does not work there
Version
Technology | Version |
---|---|
Workmanager version | latest |
Xcode version | 15.0.1 |
Swift version | latest |
iOS deployment target | 13 |
Describe the error
I have followed all of the setup steps, run the command in the debugger, and nothing happens. No errors, just the task does not get triggered at all. I both have the @pragma('vm:entry-point')
on my task handler and listen for both the name and the iosbackroundtask enum. My initial print doesn't even get logged either...
Ideas? Is This a possible bug? Thanks.
Output of flutter doctor -v
[✓] Flutter (Channel stable, 3.13.9, on macOS 14.1.1 23B81 darwin-x64, locale en-US)
• Flutter version 3.13.9 on channel stable at /usr/local/Caskroom/flutter/3.13.9/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision d211f42860 (2 weeks ago), 2023-10-25 13:42:25 -0700
• Engine revision 0545f8705d
• Dart version 3.1.5
• DevTools version 2.25.0
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
`flutter config --android-sdk` to update to that location.
[✓] Xcode - develop for iOS and macOS (Xcode 15.0.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15A507
• CocoaPods version 1.14.2
[✗] 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.
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.5)
• IntelliJ at /Users/sticks/Applications/IntelliJ IDEA Ultimate.app
• Flutter plugin version 76.3.4
• Dart plugin version 232.10072.19
[✓] Connected device (2 available)
• [omitted] iPhone (mobile) • 00008120-001A698A01E3C01E • ios • iOS 17.0.3 21A360
• macOS (desktop) • macos • darwin-x64 • macOS 14.1.1 23B81 darwin-x64
[✓] Network resources
• All expected network resources are available.```
@SticksDev are you still getting the error? if so, then what other versions of ios did you test it?
iOS 17.0.3 and I used your demo app, which also did not work.