Skip to content

[Bug]: [ANDROID] - addClickListener not firing when you click a push notification with the app on background #1143

Description

@arthurgiani

What happened?

Same description as this previous issue.

**The previous issue solved the killed state scenario, but not the background one.

Steps to reproduce?

Add onesignal_flutter: 5.5.4
Register addClickListener as shown above
Put the app in background
Send a push notification and tap it

What did you expect to happen?

Expected: Listener fires with notification data and app navigates correctly

OneSignal Flutter SDK version

5.5.4

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

[✓] Flutter (Channel stable, 3.38.10, on macOS 26.1 25B78 darwin-arm64, locale en-BR)
[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 26.3)
[✓] Chrome - develop for the web
[✓] Connected device (4 available)
[✓] Network resources

! Doctor found issues in 1 category.

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions