[Feature Request] Support filtering triggers by Analytics Event Parameters

未关闭
#7,638 0 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
android, java
领域
mobile

调研方向

首先跟踪 AnalyticsConnector 和 FIAM 的触发逻辑,以查看事件名称在哪里被转发,以及 Bundle 参数在哪里被丢弃。完成标准是 In-App Message 能够将 Analytics Event 名称与类似 result="fail" 的参数进行匹配,而不会因其他参数值而触发;issue 中未指定测试文件。

由索引模型根据 Issue 内容生成。

描述

api: analytics type: feature request

What feature would you like to see?
Support triggering In-App Messages based on Analytics Event Parameters, not just Event Names.

Currently, the AnalyticsConnector used by FIAM strips away event parameters and only forwards the event name. This limits granularity. I propose extending the triggering logic to support validation of the event's Bundle parameters (e.g., using regex or exact match). This would allow triggers to target specific event states (e.g., trigger only if event="refresh" AND status="fail").

How would you use it?
Scenario: Targeted Error Handling I track a refresh_result event in my app. I want to show a "Help/Retry" In-App Message only when the refresh fails.

Current Behavior: The IAM triggers on every refresh_result event (including successful ones), which disturbs normal users.
Desired Behavior: I can configure the IAM to fire only when the refresh_result event contains the parameter result="fail".
This feature would enable precise user targeting and prevent message spamming during successful user flows.

主要语言
Java
星标
2.6k
派生
733
平均合并
2 天 15 小时
30 天内合并 PR
72

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

firebase/firebase-android-sdk 的其他 Issue

查看 firebase/firebase-android-sdk 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。