firebase / flutterfire

🔥 A collection of Firebase plugins for Flutter apps.
https://firebase.google.com/docs/flutter/setup
BSD 3-Clause "New" or "Revised" License
8.66k stars 3.96k forks source link

🐛 [in_app_messaging] Add suport for event listener for Card interactions #12984

Open GoedertDalmolin opened 3 months ago

GoedertDalmolin commented 3 months ago

Upon reading the in-app-messaging , we found the following section:

Implement an event listener for Card interactions:

public class MyClickListener implements FirebaseInAppMessagingClickListener {

    @Override
    public void messageClicked(InAppMessage inAppMessage, Action action) {
        // Determine which URL the user clicked
        String url = action.getActionUrl();

        // Get general information about the campaign
        CampaignMetadata metadata = inAppMessage.getCampaignMetadata();

        // ...
    }

}

Note that currently this feature is implemented only for Android and Kotlin.

I request that it be implemented in Flutter using the firebase_in_app_messaging package.

TarekkMA commented 3 months ago

Hello @GoedertDalmolin,

Thank you for opening an issue regarding this. We will look into how to implement it.