Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MissingPluginException(No implementation found for method initialize on channel be.tramckrijte.workmanager/foreground_channel_work_manager #225

Closed
4 tasks done
misici234 opened this issue Oct 23, 2020 · 17 comments
Labels
bug Something isn't working

Comments

@misici234
Copy link

  • 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 ^0.2.3
Xcode version 11.6
Swift version
iOS deployment target

Describe the error
[VERBOSE-2:ui_dart_state.cc(177)] Unhandled Exception: MissingPluginException(No implementation found for method initialize on channel be.tramckrijte.workmanager/foreground_channel_work_manager)
#0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:157:7)

#1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:332:12)
#2 Workmanager.initialize (package:workmanager/src/workmanager.dart:100:30)
#3 _MyAppState.build. (package:workmanager_example/main.dart:87:33)

Optionally provide the least amount of code that shows this behaviour. Ideally in the sample app.
Above error comes from your example project. I launched your project in my iOS simulator. As soon as I clicked button "Start the Flutter background service" I got above error. I'd had the same problem when I tried to add workmanager package my Flutter project after following all instructions. Please let me know how to make this work.

Output of flutter doctor -v
[✓] Flutter (Channel stable, 1.22.0, on Mac OS X 10.15.5 19F101, locale en-CA)
• Flutter version 1.22.0 at /Users/borismisic/Developer/SDKs/flutter
• Framework revision d408d302e2 (3 weeks ago), 2020-09-29 11:49:17 -0700
• Engine revision 5babba6c4d
• Dart version 2.10.0

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/borismisic/Library/Android/sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.6, Build version 11E708
• CocoaPods version 1.9.3

[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 50.0.1
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] Connected device (4 available)
• Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)
• iPhone 8 (mobile) • 86CECABE-4A8C-4622-9789-56F866DD0B7D • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-6 (simulator)
• iPhone 11 (mobile) • 265C0D76-578B-4365-87E7-B04FFE5B8834 • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-6 (simulator)
• iPhone SE (2nd generation) (mobile) • A1B22118-9D9A-4FA2-B6B7-ECA34922CCAF • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-6 (simulator)
! Error: Boris’s iPhone is not connected. Xcode will continue when Boris’s iPhone is connected. (code -13)

• No issues found!

@misici234 misici234 added the bug Something isn't working label Oct 23, 2020
@misici234 misici234 changed the title 🐞[Enter Bug Description] MissingPluginException(No implementation found for method initialize on channel be.tramckrijte.workmanager/foreground_channel_work_manager🐞[Enter Bug Description] Oct 23, 2020
@misici234 misici234 changed the title MissingPluginException(No implementation found for method initialize on channel be.tramckrijte.workmanager/foreground_channel_work_manager🐞[Enter Bug Description] MissingPluginException(No implementation found for method initialize on channel be.tramckrijte.workmanager/foreground_channel_work_manager Oct 23, 2020
@asongkai
Copy link

any update on this?

@misici234
Copy link
Author

the only update I can provide is that I tried to run it on iPhone 8 physical device and got the same error. Example project has buttons for one off tasks and periodic tasks and they are all disabled. How can you claim that you support iOS?

@emouawad
Copy link

emouawad commented Nov 6, 2020

Same Here - Anyone found a workaround.
Followed the documentation might be hint: for some reason module workmanager is not found by xcode and no pod or framework related to workmanager so plugin cant be registered with flutter on ios

@stevenroh
Copy link

Same problem : workmanager is not found by xcode, pod missing

@FaisalMohammadi
Copy link

same problem

@CoderJava
Copy link

CoderJava commented Dec 7, 2020

Same problem. Does this plugin working for iOS?

@avinash-kanjiya
Copy link

same problem in ios app.

@prasadsunny1
Copy link

Are there any other similar packages?

@avinash-kanjiya
Copy link

avinash-kanjiya commented Dec 24, 2020

yes, shared_preferences use in my project.
but android works fine, issue in the ios app.

@mrmko
Copy link

mrmko commented Dec 27, 2020

Same issues too, is this repo still active?

@Mantton
Copy link

Mantton commented Dec 28, 2020

Solution from #217 solved the problem for me.

  • run flutter clean
  • Add this to your pubspec.yaml
  • Change platform :ios, '9.0' to platform :ios, '10.0'
  • Ensure the IOS deployment target is set to 10.0 IN Xcode.

Then try re-running the app.

@mrmko
Copy link

mrmko commented Dec 28, 2020

Strange, I did try that but didn't seem to work.

Ended up switching to:

https://pub.dev/packages/background_fetch

@ahoelzemann
Copy link

Manttons solution worked for me. Thanks!

@jigarfumakiya
Copy link

Any update Here?

@ened
Copy link
Collaborator

ened commented Jun 9, 2021

Please try updating to the latest WorkManager 0.4.1 version which includes fixes for iOS integration.

If you still encounter new issues, please open specific separate tickets.

@ened ened closed this as completed Jun 9, 2021
@ahoelzemann
Copy link

ahoelzemann commented Feb 24, 2022 via email

@HamidMusayev
Copy link

HamidMusayev commented Feb 24, 2022

I stopped using the the workmanager plugin and moved to flutter_isolate.

Best regards

I changed shared_preferences plugin with flutter_secure_storage and it worked. Thanks

@fluttercommunity fluttercommunity locked and limited conversation to collaborators Feb 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests