Skip to content

Notification Icon Creation Failure in OneSignal Integration [Bug]:  #2090

@Nass33m

Description

@Nass33m

What happened?

We are experiencing a RemoteServiceException with the message "Bad notification posted from package..." followed by "Couldn't create icon". This issue seems to occur when trying to display notifications in our app, particularly when using OneSignal for push notifications. The error message indicates a failure in creating the notification icon, which leads to the app crashing.

Steps to reproduce?

No idea of how to reproduce, in testing everything worked fine... but in production some users got this crash

What did you expect to happen?

I believed that OneSignal handled the icon faillure/not existing in their code

OneSignal Android SDK version

5.1.12

Android version

13, 12

Specific Android models

No response

Relevant log output

Fatal Exception: android.app.RemoteServiceException: Bad notification posted from package com.XXXXX.XXXX.XXXX: Couldn't create icon: StatusBarIcon(icon=Icon(typ=RESOURCE pkg=com.XXXXX.XXXX.XXXX id=0x7f0700bc) visible user=0 )
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2204)
       at android.os.Handler.dispatchMessage(Handler.java:108)
       at android.os.Looper.loop(Looper.java:166)
       at android.app.ActivityThread.main(ActivityThread.java:7529)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)

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