Skip to content

Allow disabling Custom Tabs when handling In-App Message click actions #4728

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bartek-wesolowski
Copy link

@bartek-wesolowski bartek-wesolowski commented Mar 1, 2023

By default, In-App Message links are handled by opening a Custom Tab. This behavior might be undesirable because deep links don't open in the app. It would be great if there was a way of disabling Custom Tabs.

Related issue #4726

I implemented an alternative (arguably better) solution here #4729

@@ -82,6 +82,8 @@ public class FirebaseInAppMessagingDisplay extends FirebaseInAppMessagingDisplay
20 * 1000; // auto dismiss after 20 seconds for banner
static final long INTERVAL_MILLIS = 1000;

public boolean useCustomTabs = true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably make this variable private and have public getters/setters to be consistent with other Firebase APIs.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants