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
iOS package inside onStart() function throws "missing plugin implementation" exception #89
Comments
can you provide |
Ok i will give you as soon as I can
Il Sab 22 Gen 2022, 21:27 Eka Setiawan Saputra ***@***.***>
ha scritto:
… can you provide flutter doctor output?
—
Reply to this email directly, view it on GitHub
<#89 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADEWB4M6GLQULZCETA3GDNLUXMHKNANCNFSM5MR3YDGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hello @ekasetiawans i'm facing the same issue here. Doctor summary (to see all details, run flutter doctor -v): |
Sorry for the delay. Here is my flutter doctor: Doctor summary (to see all details, run flutter doctor -v): [!] Xcode - develop for iOS and macOS (Xcode 12.1) |
@bobosette have you call |
Yes. I give you some code: ` void onIosBackground() { Future initializeService() async {
); void onStart() { WidgetsFlutterBinding.ensureInitialized(); //background service initialization FlutterBackgroundService().onDataReceived.listen((event) async {
//model initialization // bring to foreground
` |
@bobosette could you try to add commented code in |
Hello @ekasetiawans I'm getting this error : Type 'SwiftFlutterBackgroundServicePlugin' has no member 'setPluginRegistrantCallback' when i uncommented code in AppDelegate.swift which makes sense as it's no longer available in new versions. |
@Habib-T4ULabs Thanks for the info. It seems a bug in plugin need to be fix but I don't have enough time to fix it now. |
@ekasetiawans first of all thank you for your reactivity! |
@Habib-T4ULabs you can always fork this repository, modify it, and then use your git repository url in your pubspec.yaml. If everything already done, you can create a pull request then I will merge it, so it will be available at pub.dev for everyone. |
Guys when you have something ready to fix that, could you tell me please?
Il giorno gio 3 feb 2022 alle ore 10:21 Eka Setiawan Saputra <
***@***.***> ha scritto:
… @Habib-T4ULabs <https://github.com/Habib-T4ULabs> you can always fork
this repository, modify it, and then use your git repository url in your
pubspec.yaml. If everything already done, you can create a pull request
then I will merge it, so it will be available at pub.dev for everyone.
—
Reply to this email directly, view it on GitHub
<#89 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADEWB4LHJ4QELCKSHP44UJDUZJCI7ANCNFSM5MR3YDGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@ekasetiawans can you please give me the right steps to fix it as your functions are no longer available in the new versions ? |
@ekasetiawans i forked the repository and tried what you proposed previously but still get the same error |
@Habib-T4ULabs |
@paraslamsong i followed the steps that @ekasetiawans mentioned but still not working. I ended up including another package for IOS as Flutter background service still not stable on IOS platform. |
@Habib-T4ULabs what package? |
@bobosette I used this package (flutter_isolate 2.0.0) |
What do u mean with this?? I need something to let the app run in background for maybe hours!! Is it possible? |
Hi everyone, sorry for the delay. To registering plugis please see example: https://github.com/ekasetiawans/flutter_background_service/blob/master/packages/flutter_background_service/example/ios/Runner/AppDelegate.swift Note that, only plugins that doesn't require UI allowed. |
Thank you very much @ekasetiawans , now it works fine!!!! One last thing: i don't know why when i call stopBackgroundService(), the red banner on ios home is still there. Do you have any idea? ` if (event["action"] == "stopService") { |
Hi guys i got the same Problem on Android running Version 0.2.6 .
|
@ekasetiawans The link to register the plugin is broken. |
@TimeLord2010 I have updated the link. |
Hi everybody. Inside the onStart() function I'm using methods and functio from an external package. On Android everything work fine, on iOS these methods from that package throw the "missing plugin implementation" exception.
But if I don't use background_service and i run these methods normally in an app widget, they work.
It's like inside the onStart() function iOS doesn't find that package.
Someone has got the same problem?
How can I fix it?
The text was updated successfully, but these errors were encountered: