-
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 notification not working on android #591
Comments
Hello! I don't have a solution :/ do you maybe know how to fix this error now? |
I am also affected by this issue! |
I can suggest this patch import jnius
original_autoclass = jnius.autoclass
def patched_autoclass(clsname, *args, **kwargs):
return None if clsname.endswith('R$drawable') else original_autoclass(clsname, *args, **kwargs)
jnius.autoclass = patched_autoclass
import plyer Of course it is not a good decision, but it works if you does not create notification with image |
Hope this solution to send Android notifications using Plyer can be helpful to someone: |
Nice, thanks :-)
…On Sat, Jun 8, 2024 at 5:50 PM nikita_kokarev ***@***.***> wrote:
Hello! I don't have a solution :/ do you maybe know how to fix this error
now? Thank you!
Hope this solution to send Android notifications using Plyer can be
helpful to someone:
https://github.com/NikitaKokarev/PlyerNotification
I changed the plyer notification logic depending on api_version >= 31.
—
Reply to this email directly, view it on GitHub
<#591 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA3AGK3QO5QFSQL3RHVFQ5LZGMR2XAVCNFSM6AAAAABJACU65WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGA4DGMZWGE>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
--
Richard Larkin
--------------------
The Zen of Kivy: Open Source, cross platform, full stack. Mobile and
desktop.
http://kivy.org/
<http://www.camiweb.com/zenkey>
|
I'm trying to code a simple application that receive a message and display a notification, everything works fine except the notification.
I run the app on android 10
The code I use for the notification is:
and I get this error when I run the app on my phone (adb logcat):
if useful my buildozer.spec file is:
I really cannot understand what's wrong, can someone help me?
The text was updated successfully, but these errors were encountered: