OneSignal-Android-SDK icon indicating copy to clipboard operation
OneSignal-Android-SDK copied to clipboard

[Bug]: androidNotificationId is zero most of the time

Open TooLazyy opened this issue 1 year ago • 2 comments

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

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

TooLazyy avatar Jan 12 '24 08:01 TooLazyy

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

image

TooLazyy avatar Jan 12 '24 09:01 TooLazyy

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

jennantilla avatar Jan 12 '24 23:01 jennantilla