-
Notifications
You must be signed in to change notification settings - Fork 425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plyer notifications raising NotImplementedError on android #467
Comments
This is due to this line:
which tries to import the and it seems to me from this error that you do not have a compiled Basically what happened is that you don't have so that it can use it in Note: whether it works on linux or not means only that the example Kivy application works, not that the notification itself works. Those are various different files located in |
How can I do that through buildozer? Compiling using the android_new target also leads to a crash. 11-06 15:43:42.960 5576 5595 I python : [INFO ] [Logger ] Record log in /data/user/0/org.test.notiexample/files/app/.kivy/logs/kivy_18-11-06_1.txt |
Holy shit, just realized my buildozer is waaay out of date, closing this until I get that sorted out. EDIT: thanks for your help @KeyWeeUsr , adding android to the requirements in buildozer.spec sorted things out |
Using the example code (and any other instance of notification.notify) crashes on my android device.
Also worth noting is that it works flawlessly on my (linux) laptop.
Logcat:
11-06 11:56:36.878 16302 16321 I python : Traceback (most recent call last):
11-06 11:56:36.879 16302 16321 I python : File "/home/liam/Documents/AndroidServiceTest/notification_test/plyer/examples/notification/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/site-packages/plyer/utils.py", line 95, in _ensure_obj
11-06 11:56:36.879 16302 16321 I python : File "/home/liam/Documents/AndroidServiceTest/notification_test/plyer/examples/notification/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/site-packages/plyer/platforms/android/notification.py", line 5, in
11-06 11:56:36.880 16302 16321 I python : ImportError: No module named config
11-06 11:56:36.880 16302 16321 I python : [INFO ] [Base ] Leaving application in progress...
11-06 11:56:36.881 16302 16321 I python : Traceback (most recent call last):
11-06 11:56:36.881 16302 16321 I python : File "/home/liam/Documents/AndroidServiceTest/notification/.buildozer/android/app/main.py", line 35, in
11-06 11:56:36.882 16302 16321 I python : File "/home/liam/Documents/AndroidServiceTest/notification_test/plyer/examples/notification/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/app.py", line 826, in run
11-06 11:56:36.882 16302 16321 I python : File "/home/liam/Documents/AndroidServiceTest/notification_test/plyer/examples/notification/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/base.py", line 502, in runTouchApp
11-06 11:56:36.883 16302 16321 I python : File "/home/liam/Documents/AndroidServiceTest/notification_test/plyer/examples/notification/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/core/window/window_pygame.py", line 403, in mainloop
11-06 11:56:36.884 16302 16321 I python : File "/home/liam/Documents/AndroidServiceTest/notification_test/plyer/examples/notification/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/core/window/window_pygame.py", line 289, in _mainloop
11-06 11:56:36.884 16302 16321 I python : File "/home/liam/Documents/AndroidServiceTest/notification_test/plyer/examples/notification/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/base.py", line 340, in idle
11-06 11:56:36.885 16302 16321 I python : File "/home/liam/Documents/AndroidServiceTest/notification_test/plyer/examples/notification/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/base.py", line 325, in dispatch_input
11-06 11:56:36.885 16302 16321 I python : File "/home/liam/Documents/AndroidServiceTest/notification_test/plyer/examples/notification/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/base.py", line 231, in post_dispatch_input
11-06 11:56:36.885 16302 16321 I python : File "kivy/_event.pyx", line 707, in kivy._event.EventDispatcher.dispatch (kivy/_event.c:7727)
11-06 11:56:36.886 16302 16321 I python : File "/home/liam/Documents/AndroidServiceTest/notification_test/plyer/examples/notification/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/core/window/init.py", line 1360, in on_motion
11-06 11:56:36.887 16302 16321 I python : File "kivy/_event.pyx", line 707, in kivy._event.EventDispatcher.dispatch (kivy/_event.c:7727)
11-06 11:56:36.887 16302 16321 I python : File "/home/liam/Documents/AndroidServiceTest/notification_test/plyer/examples/notification/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/core/window/init.py", line 1376, in on_touch_down
11-06 11:56:36.887 16302 16321 I python : File "kivy/_event.pyx", line 707, in kivy._event.EventDispatcher.dispatch (kivy/_event.c:7727)
11-06 11:56:36.888 16302 16321 I python : File "/home/liam/Documents/AndroidServiceTest/notification_test/plyer/examples/notification/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/uix/widget.py", line 460, in on_touch_down
11-06 11:56:36.888 16302 16321 I python : File "kivy/_event.pyx", line 707, in kivy._event.EventDispatcher.dispatch (kivy/_event.c:7727)
11-06 11:56:36.889 16302 16321 I python : File "/home/liam/Documents/AndroidServiceTest/notification_test/plyer/examples/notification/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/uix/behaviors/button.py", line 151, in on_touch_down
11-06 11:56:36.890 16302 16321 I python : File "kivy/_event.pyx", line 703, in kivy._event.EventDispatcher.dispatch (kivy/_event.c:7682)
11-06 11:56:36.890 16302 16321 I python : File "kivy/_event.pyx", line 1214, in kivy._event.EventObservers.dispatch (kivy/_event.c:13525)
11-06 11:56:36.891 16302 16321 I python : File "kivy/_event.pyx", line 1098, in kivy._event.EventObservers._dispatch (kivy/_event.c:12357)
11-06 11:56:36.891 16302 16321 I python : File "/home/liam/Documents/AndroidServiceTest/notification_test/plyer/examples/notification/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/lang/builder.py", line 64, in custom_callback
11-06 11:56:36.892 16302 16321 I python : File "/data/data/org.test.notiexample/files/notificationdemo.kv", line 22, in
11-06 11:56:36.892 16302 16321 I python : on_press: root.do_notify(mode='normal')
11-06 11:56:36.893 16302 16321 I python : File "/home/liam/Documents/AndroidServiceTest/notification/.buildozer/android/app/main.py", line 23, in do_notify
11-06 11:56:36.893 16302 16321 I python : File "/home/liam/Documents/AndroidServiceTest/notification_test/plyer/examples/notification/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/site-packages/plyer/facades/notification.py", line 57, in notify
11-06 11:56:36.894 16302 16321 I python : File "/home/liam/Documents/AndroidServiceTest/notification_test/plyer/examples/notification/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/site-packages/plyer/facades/notification.py", line 62, in _notify
11-06 11:56:36.894 16302 16321 I python : NotImplementedError: No usable implementation found!
11-06 11:56:36.925 16302 16321 I python : Python for android ended.
haven't found any information about this around, any suggestions? Or other ways to send android notifications?
The text was updated successfully, but these errors were encountered: