Questions tagged [event-channel]

16 questions
4
votes
1 answer

Receive Strings via EventChannel from Android

I'm currently learning Flutter and specially about communicating with the Device itself. Currently I have set up an MethodChannel, where I receive a List of Strings as result, but now I would like to change it to receiving these string on a stream…
kalinor
  • 159
  • 1
  • 11
3
votes
0 answers

Flutter Exception caught by gesture: a ticker was started twice

I have a Flutter application that communicates with the android native code through EventChannel and MethodChannel in order to start or stop an SDK and listen and display in the Flutter Ui the event generated by the SDK. Everything work fine until I…
2
votes
1 answer

Event channel is not working as expected between flutter and kotlin

I did a plugin in native code(Kotlin) and tried to use that in a Flutter application. I used a method channel for Flutter to native code communication and an event channel for native code to Flutter. Method channel communication is working properly,…
2
votes
1 answer

How to send a list of data from flutter to android java method channels or eventChannels?

void sendData() async { final session = StateInheritedWidget.of(context).state.session; String Datas; try { final String result = await sendData.invokeMethod( 'sendData',{"bVolt":1.5,"hstring":2.5, …
1
vote
1 answer

Is possible to have an app written in flutter that send data to another app in android? through EventChannels

Can you explain how to communicate from an application A written in flutter to an application written in Android B. Is possible use EventChannels for this purpose? If it is possible this communication is bidirectional? An example is here (FLUTTER…
1
vote
0 answers

Can flutter native side use eventchannel transfer the MAP data?

I am running the flutter platform channel "Eventchannel" with windows platform I know this not mention in official platform channel document but I found some example that work with windows and I test it. Now, I can transfer the single data from…
DavidLee
  • 35
  • 4
1
vote
0 answers

Sink.Success of EventChannel from Platform cannot send a stream of data to flutter

I am newbie to flutter and java. I am trying to send a stream of data from speechRecognizer.recognized.addeventlistener function from java to flutter. speechRecognizer.recognized.addeventlistener is using Microsoft Azure speech to text API .But the…
1
vote
0 answers

Why event channel disables when an asyncTask will execute? In flutter android

I have written a native code for flutter that will download file from given url. Everything works fine and file will download and store perfectly. The problem is that when i want to retrieve downloaded percentage(download progress). I used event…
1
vote
0 answers

Specify a Limited Set of Types Allowed for Kotlin Generics

Context I'm building a Flutter application where I need to use some 3rd party library that only works with the native platform. For this, I'm using en EventChannel to get recurring information. As Flutter and native code can't ensure the types…
Fernando Santos
  • 392
  • 4
  • 19
1
vote
1 answer

How to add several listener to Flutter.EventChannel?

I'm building a Flutter-Plugin which offers several UI-Widgets to interact with a native (Android/iOS) library. Updates and/or state changes of the library to the Flutter side are delegated with Events, which are delegated to Flutter over the Flutter…
longi
  • 11,104
  • 10
  • 55
  • 89
0
votes
1 answer

Writing wazuh/ossec rules for windows eventchannel

I have been trying to get started with writing custom rules for wazuh and cannot seem to get my rules to fire. in ossec.conf i have both the default ruleset path and the user defined path set to etc/rules etc/rules And in…
Lauri
  • 61
  • 1
  • 8
0
votes
0 answers

Sending data from flutter to foreground service

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…
0
votes
0 answers

Flutter event channel not working in background with bluetooth

I am using native android code to scan and connect to a BLE device and after connection it listens for data in characteristic and used broadcast to sent data back to the flutter event channel. When I use it while app is running it perfectly sends…
0
votes
0 answers

Data streaming between Flutter and Java is not working

I am a newbie to flutter and Java. I want help from you guys. What do I need? I want to make an android mobile application with two buttons. One button to record our voice and another one to stop recording. After clicking a record button I want to…
0
votes
1 answer

How can I stream the selection of colors from the native macOS color picker to Flutter using EventChannels?

I am attempting to add a feature to macos_ui that allows the user to launch the native macOS color picker and stream back their color selections via EventChannel. I am able to launch the picker (Cocoa's NSColorPanel), but the color selection does…
1
2