Notification for android not working [ Drawable.icon ]
See original GitHub issueI’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.
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (6 by maintainers)
PR
is nowmerged
and theissue
is nowfixed
! Thank y’all. ❤️Hello, you are right. I reopened the issue and edited my last comment. Thanks 😃