firebase / firebase/firebase-android-sdk

Allow custom impression/dismiss thresholds in FirebaseInAppMessagingDisplay

Open
#4,727 2 comments 0 reactions 0 assignees View on GitHub
api: inappmessaging type: feature request
Dominant language
Java
Stars
2.6k
Forks
710
Avg merge
2d 9h
Merged PRs (30d)
31

Description

## What feature would you like to see?

I'd like to be able to set custom values as impression and dismiss thresholds in `FirebaseInAppMessagingDisplay`. Right now they are final:
```java
static final long IMPRESSION_THRESHOLD_MILLIS = 5 * 1000; // 5 seconds is a valid impression
static final long DISMISS_THRESHOLD_MILLIS =
20 * 1000; // auto dismiss after 20 seconds for banner
```

## How would you use it?

I would set different thresholds, e.g. I wouldn't require 5s of displaying a message to count as an impression.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.