Closed omarhussein-ava closed 4 months ago
Hi @omarhussein-ava You can build your custom plugin adding the firebase_messaging to identify when you receive a message, something like:
// Handle incoming messages when the app is in the foreground
FirebaseMessaging.onMessage.listen((RemoteMessage message) {
analytics.track("Message Received", properties: {})
});
You can use the track method in the moment that you receive the notification.
Thank you, closing this.
As the question on the title says, we want to track this event using the Segments SDK, how to activate it?
We're using Flutter 3.19.6 and the following dependencies: