Problem when trying to push a notification on an android background service

66 views
Skip to first unread message

Hugo Cezar

unread,
Mar 7, 2023, 12:36:27 PM3/7/23
to Kivy users support
im trying to develop a program that has a loop in a background service on android, and in that loop when a condition is reached it will send a notification, all this in the background, without the need for the user to stay in the application. But I failed miserably and came across this error when running the command (adb logcat -s Hnotifier):


errorr.png

buildozer.spec
buildozer.pngI

service.py
codee.png

main.py
main.png

If anyone knows how I can do this, I would be grateful for the help. Thanks.

Robert

unread,
Mar 7, 2023, 3:36:49 PM3/7/23
to Kivy users support
Sadly Plyer is not well maintained. The idea is appealing, the implementation commonly disappoints.
For Plyer my advice is always the same:
If Plyer works then great, if it doesn't work walk away - don't waste your time.

I took a quick look, it appears that Plyer Notification is written in a way that will not work from a Service.
Reply all
Reply to author
Forward
0 new messages