flutter_background_service icon indicating copy to clipboard operation
flutter_background_service copied to clipboard

Can't get recive data to UI

Open CaoGiaHieu-dev opened this issue 4 years ago • 5 comments

Hi , im stuck in this issue when i try to receive data from native . I do as same as your example but my widget can't listen value from stream . It's have value when i log it

CaoGiaHieu-dev avatar May 29 '21 18:05 CaoGiaHieu-dev

I am stuck in a similar issue. Let me know if you were able to fix it.

ajithkgshk avatar Nov 17 '21 06:11 ajithkgshk

The same here :/

bluemix avatar Jan 30 '22 18:01 bluemix

I checked it. It is in the README.md and in the example of this repo:

Since the Service using Isolates, You won't be able to share reference between UI and Service. You can communicate between UI and Service using sendData() and onDataReceived.

bluemix avatar Jan 30 '22 20:01 bluemix

How to do that? Can you please help me with the code?

arpitsharma007 avatar Jun 28 '22 06:06 arpitsharma007

@arpitsharma007 check this example: https://github.com/ekasetiawans/flutter_background_service/blob/master/packages/flutter_background_service/example/lib/main.dart

bluemix avatar Jul 01 '22 10:07 bluemix