flutter_background_service
flutter_background_service copied to clipboard
Can't get recive data to UI
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
I am stuck in a similar issue. Let me know if you were able to fix it.
The same here :/
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()andonDataReceived.
How to do that? Can you please help me with the code?
@arpitsharma007 check this example: https://github.com/ekasetiawans/flutter_background_service/blob/master/packages/flutter_background_service/example/lib/main.dart