Skip to content

Allow manually marking screen boundaries #30

@mxalbert1996

Description

@mxalbert1996

Is your feature request related to a problem? Please describe.

According to the doc, screen boundaries are only detected when 1) Activity.onResume() is called or 2) a new view event is fired.
We are migrating our app from multiple-activity to single-activity with navigation compose. As we are only firing view events on some screens, screen boundary is not detected when we transition to a screen without a view event, and the popup is not dismissed.

Describe the solution you'd like

Provide an API such as KarteApp.markScreenBoundary() to allow manually marking screen boundaries.
Once this API is provided, we can do something like this:

navController.currentBackStackEntryFlow.collect { KarteApp.markScreenBoundary() }

Describe alternatives you've considered

We considered using InAppMessaging.dismiss(), but doing that essentially makes the option "Do not control display and always display" unusable.

If there is any solution other than adding a view event for every screen, please let me know!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions