Re: Plyer Notification does not work on android

261 views
Skip to first unread message
Message has been deleted
Message has been deleted

Miikyzz RP

unread,
Nov 20, 2021, 11:04:45 AM11/20/21
to Kivy development
hello, hey pal i am on windows but i have not solved the problem. could you help me

El viernes, 24 de septiembre de 2021 a las 14:34:58 UTC-4, caisipmar...@gmail.com escribió:
I have finally fixed the error.

On Thursday, September 23, 2021 at 7:11:47 PM UTC+8 Mark Joseph Caisip wrote:
I'm building an android app in buildozer with plyer. It seems that the notification don't work.

The notification code in main.py:
     notification.notify(title='WARNING!', message='This is a sample warning!')


It works on my computer running Linux Fedora 34 Workstation, 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 file:
     requirements = python3,kivy,plyer
     icon.filename = %(source.dir)s/icon/warning_icon.png
     
Logs:
     AttributeError: type object 'com.test.notification.R$drawable' has no attribute 'icon'
     Python for android ended.

I've researching for a while now, but can't find a solution. If this not really working, is there other alternative to push a notification on android?
Reply all
Reply to author
Forward
0 new messages