Skip to content

Opened Chrome Custom Tab automatically closes when Android App using Branch and singleTask for Activity launcher mode is used. #1329

@station70-nazli

Description

@station70-nazli

Describe the bug

I'm using CCT to launch some required web flows in my Android app and have noticed that Branch's required singleTask launch mode for the launcher activity handling deep links, creates an issue with a currently-displayed chrome custom tab disappearing once I background and foreground my app.

Wondering if you guys have any suggestions on how to go about this. It's sub-optimal for user to be in-between a required flow, background the app, and for the whole CCT to be closed, requiring them to start over.

If I change launchMode to singleTop or standard, the CCT issue goes away, but since Branch requires singleTask, deep link handling will not work properly.

Expected behavior

I expect for CCT to remain open after the app is backgrounded and foregrounded.

SDK Version

5.20.3

Make and Model

Not device-specific

OS

Not OS specific

Additional Information/Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions