fluttercommunity / flutter_workmanager

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

Is it possible to call native android code via method chanels inside the callbackDispatcher ? #567

Open tempo-riz opened 3 months ago

tempo-riz commented 3 months ago

I'm trying to call android method via platform chanels. They work fine when called from main isolate but when calling from my callbackDispatcher I always get "Error in background task: MissingPluginException(No implementation found for method ... my android method)"

Is it intended to work or not in the first place ? Can't find doc about this Thanks for any clues !