I am new to the world of mobile development.
I'm currently using flutter_foreground_task to create the service and push the updates to UI.
The problem I'm having is trying to send data to the service from the UI.
I have tried with MethodChannel EventChannel and I have not been able to achieve it, in the documentation that I have read nothing is mentioned about it.
Example. By pressing a button I need to send data to the service to notify said action and send data through a websokect.
Example. By pressing a button I need to send data to the service to notify said action and send data through a websokect.
By chance you could help me by guiding me what I should implement to make that communication.