Skip to content

Notification for android not working [ Drawable.icon ] #647

@cipherleaf

Description

@cipherleaf

I'm building an android app in buildozer with plyer. It seems that the notification don't work.
My simple code for notification using plyer:

notification.notify(title='WARNING!', message='This is a sample warning!')

It works on my computer but when I built it for android and run it on my phone, the app crashes when it tries to send a notification. It says that there's no attribute icon for the app in _set_icons.py. I tried to look into it, but I don't know what should I do.

buildozer.spec

requirements = python3,kivy,plyer,android

logs

09-21 15:40:00.332 18207 18233 I python : File "/home/masterjoseph/notif-test/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/notificationtest/plyer/platforms/android/notification.py", line 100, in _set_icons
09-21 15:40:00.332 18207 18233 I python : AttributeError: type object 'com.test.notification.R$drawable' has no attribute 'icon'
09-21 15:40:00.332 18207 18233 I python : Python for android ended.

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