You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a simple Kivy application that has a foreground service. When I try to send a notification via plyer in this service, I get an error AttributeError: 'org.kivy.android.PythonService' object has no attribute 'getComponentName'
Full traceback
02-25 20:57:46.152 7264 7281 I Service : Android kivy bootstrap done. __name__ is __main__
02-25 20:57:48.122 7264 7281 I Service : Traceback (most recent call last):
02-25 20:57:48.122 7264 7281 I Service : File "/home/suser/Projects/TestService/.buildozer/android/platform/build-arm64-v8a/build/python-installs/testservice/arm64-v8a/plyer/utils.py", line 97, in _ensure_obj
02-25 20:57:48.122 7264 7281 I Service : File "/home/suser/Projects/TestService/.buildozer/android/platform/build-arm64-v8a/build/python-installs/testservice/arm64-v8a/plyer/platforms/android/notification.py", line 201, in instance
02-25 20:57:48.122 7264 7281 I Service : File "/home/suser/Projects/TestService/.buildozer/android/platform/build-arm64-v8a/build/python-installs/testservice/arm64-v8a/plyer/platforms/android/notification.py", line 48, in __init__
02-25 20:57:48.122 7264 7281 I Service : AttributeError: 'org.kivy.android.PythonService' object has no attribute 'getComponentName'
02-25 20:57:48.122 7264 7281 I Service : Traceback (most recent call last):
02-25 20:57:48.122 7264 7281 I Service : File "/home/suser/Projects/TestService/.buildozer/android/app/services/service.py", line 8, in <module>
02-25 20:57:48.122 7264 7281 I Service : File "/home/suser/Projects/TestService/.buildozer/android/platform/build-arm64-v8a/build/python-installs/testservice/arm64-v8a/plyer/facades/notification.py", line 84, in notify
02-25 20:57:48.123 7264 7281 I Service : File "/home/suser/Projects/TestService/.buildozer/android/platform/build-arm64-v8a/build/python-installs/testservice/arm64-v8a/plyer/facades/notification.py", line 93, in _notify
02-25 20:57:48.123 7264 7281 I Service : NotImplementedError: No usable implementation found!
Description
I have a simple Kivy application that has a foreground service. When I try to send a notification via
plyer
in this service, I get an errorAttributeError: 'org.kivy.android.PythonService' object has no attribute 'getComponentName'
Full traceback
Code
main.py
service.py
buildozer.spec
Versions
python-for-android: master
plyer: 2.1.0
The text was updated successfully, but these errors were encountered: