Skip to content

[Bug]: addClickListener not triggered when app is killed  #845

@Debabrataroy

Description

@Debabrataroy

What happened?

OneSignal.Notifications.addClickListener does not fire on the push notification tap when the app is killed (android).
Also, I run in release mode but the result is the same.

Here are the logs when I run in release mode.
W/FlutterJNI(19398): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: OneSignal#notifications. Response ID: 35
W/FlutterJNI(19398): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: OneSignal#notifications. Response ID: 14
W/FlutterJNI(19398): Tried to send a platform message to Flutter, but FlutterJNI was detached from native C++. Could not send. Channel: OneSignal#notifications. Response ID: 9

Package Info:
onesignal_flutter:
dependency: "direct main"
description:
name: onesignal_flutter
url: "https://pub.dev"
source: hosted
version: "5.1.0"

Let me know if you need anything else.
Thanks

Steps to reproduce?

1. kill the app
2. click on the received notification

What did you expect to happen?

addClickListener should be triggered when app open

OneSignal Flutter SDK version

5.1.0

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

No response

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