Dev-hwang / flutter_foreground_task

This plugin is used to implement a foreground service on the Android platform.
https://pub.dev/packages/flutter_foreground_task
MIT License
149 stars 109 forks source link

Issue when use func FlutterForegroundTask.sendDataToTask(data) #258

Closed buihongvinh closed 2 months ago

buihongvinh commented 2 months ago

I call in HomePage

final Map<String, dynamic> data = {
  "stopCamera" : "true",
};
FlutterForegroundTask.sendDataToTask(data);

image

But i received Map<Object?, Object?> in Task (onReceiveData).
 so that if I check 
 if(data is Map<String, dynamic>) -> it will return false

image

Dev-hwang commented 2 months ago

fixed issue flutter_foreground_task: 8.3.1