Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: androidNotificationId is zero most of the time #1962

Open
1 task done
TooLazyy opened this issue Jan 12, 2024 · 2 comments
Open
1 task done

[Bug]: androidNotificationId is zero most of the time #1962

TooLazyy opened this issue Jan 12, 2024 · 2 comments

Comments

@TooLazyy
Copy link

TooLazyy commented Jan 12, 2024

What happened?

Im getting androidNotificationId = 0 on OneSignal.OSRemoteNotificationReceivedHandler -> remoteNotificationReceived method.

Sometimes it has a value, but most of the time it's 0.

Is there any other way to remove a particular notification by one signal notification id?

Steps to reproduce?

Get notification

What did you expect to happen?

androidNotificationId != 0

OneSignal Android SDK version

4.7.3

Android version

13

Specific Android models

No response

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@TooLazyy
Copy link
Author

TooLazyy commented Jan 12, 2024

Looks like the issue is copy method used inside OSNotificationReceivedEvent -> processNotification

image

@jennantilla
Copy link
Contributor

@TooLazyy thank you for reaching out! We'll look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants