How can I call headless Dart code in a Flutter app from native platform
Asked Answered
T

0

6

I'm using quick_actions plugin in one of my Flutter apps and wish to invoke a headless Dart function when user clicks on a shortcut.

I just wish to execute the dart code in background without showing the app screen to the user. I know many plugins like background_fetch, WorkManager etc can schedule to run dart code in background.

I'm assuming that the java code in quick_actions plugin might have to be modified to achieve?

Thiamine answered 2/10, 2020 at 15:49 Comment(1)
Seems like you need a service in fllutter to run your dart in the background and then platform-channel to call that code from your android code. Check this #49099908Supernal

© 2022 - 2024 — McMap. All rights reserved.