Skip to content

[Bug]: com.onesignal.notifications.internal.open.impl.NotificationOpenedProcessor.markNotificationsConsumed #2490

@laraibsaghir0

Description

@laraibsaghir0

What happened?

Alot of ANRs are being logged in Firebase Analytics after upgrading to one signal version 5.4.0.

Steps to reproduce?

Many users face ANR when the app runs. There are no specific steps to reproduce this issue.

What did you expect to happen?

No ANR in my app.

OneSignal Android SDK version

5.4.0

Android version

15

Specific Android models

Transsion Tecno Camon 40 Pro

Relevant log output

main (runnable):tid=1 systid=15776 
       at android.os.BaseBundle.getInt(BaseBundle.java:1290)
       at android.content.Intent.getIntExtra(Intent.java:9383)
       at com.onesignal.notifications.internal.open.impl.NotificationOpenedProcessor.markNotificationsConsumed(NotificationOpenedProcessor.kt:193)
       at com.onesignal.notifications.internal.open.impl.NotificationOpenedProcessor.processIntent(NotificationOpenedProcessor.kt:113)
       at com.onesignal.notifications.internal.open.impl.NotificationOpenedProcessor.processFromContext(NotificationOpenedProcessor.kt:65)
       at com.onesignal.notifications.receivers.NotificationDismissReceiver$onReceive$1$1.invokeSuspend(NotificationDismissReceiver.kt:55)
       at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
       at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
       at android.os.Handler.handleCallback(Handler.java:959)
       at android.os.Handler.dispatchMessage(Handler.java:100)
       at android.os.Looper.loopOnce(Looper.java:311)
       at android.os.Looper.loop(Looper.java:408)
       at android.app.ActivityThread.main(ActivityThread.java:9119)
       at java.lang.reflect.Method.invoke(Native method)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:627)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:970)

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