Shraeyas
(Shreyas Singh)
December 6, 2022, 2:12pm
1
Hi,
Client has integrated flutter-android in their mobile app and are receiving events that we have configured (on button clicks).
However, on flutter-ios integration, they are not receiving any events. Are there any other extra steps for receiving events on iOS?
TIA.
Hi please refer flutter ios document for event listener under Mobile SDK → Chatbot → Flutter
Also share the code client is using to listen to event.
2 Likes
Shraeyas
(Shreyas Singh)
December 6, 2022, 4:06pm
3
EventChannel _ymEventChannel = const EventChannel("YMChatEvent");
_ymEventChannel.receiveBroadcastStream().listen((event) {
Map ymEvent = event;
log("${ymEvent['code']} : ${ymEvent['data']}");
});
Hi @Sukrit_Gupta
This is the code they are using. They have tried with the code on GitHub as well and still were not receiving any events.
1 Like
Ok… please raise a ticket under Apps category. We will look into this.
Please make sure sendIOSEvent() is used to sent the event from bot.
2 Likes
Shraeyas
(Shreyas Singh)
December 6, 2022, 4:35pm
5
await app.sendEvent({
code: 'sendIOSEvent',
data: { code: 'url_clicked', data: "test_data" }
})
This is an App bot and this is the code we are using.
Also, as mentioned, we are receiving events on flutter android, and also native android.
This issue is only happening on iOS.
We will raise a ticket for this.
Hi @Shraeyas
As mentioned by @Dimple_Mehta on the [ticket]here(Log in with Atlassian account ), It is working fine now. So please mark this resolved here as well in the community.