Skip to content

[Bug]: In-App popup appearing constantly when closed with Android back button #2274

@BrianValente

Description

@BrianValente

What happened?

Hello, I have encountered an issue with OneSignal’s in-app messaging on Android. When an in-app message is displayed and dismissed using the Android back button, it initially disappears as expected. However, if the user then sends the app to the background and reopens it, the in-app message reappears, even though it was previously dismissed.

screen-20250323-124905.mp4

Steps to reproduce?

1. Open the app and trigger an in-app message (configured via OneSignal).
2. Close the message using the Android back button.
3. Send the app to the background.
4. Reopen the app.

What did you expect to happen?

The in-app message should remain dismissed after being closed with the back button.

OneSignal Android SDK version

OneSignal Android SDK 5.1.26, react-native-onesignal 5.2.8

Android version

15

Specific Android models

Google Pixel 7a on Android 16 beta

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

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