Skip to content

A simple demo application for Android, in which the Plyer logic for sending notifications has been restored.

Notifications You must be signed in to change notification settings

NikitaKokarev/PlyerNotification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PlyerNotification

A simple demo application for Android, in which the Plyer logic for sending notifications has been restored.


Plyer notification.py changes

versionchanged:: 1.5.0
Fixed notifications. Changed getting activity depending on api_version >= 31.
Functon _set_icons has been refactored.
Added text style property for large message.

How to use notification.py:

The app works 'as it is' with import from notification.py
Or you can put this file to the Plyer directory:

site-packages/plyer/platforms/android/notification.py

before build process (when buildozer downloads and sets up all the prerequisites for python-for-android, including the android SDK and NDK).

View:

img img

How to use with Buildozer:

On Linux

On Windows 10

Build automatically via GitHub Actions

Do not forget to run buildozer android clean or remove .buildozer directory before building if version was updated (Buildozer doesn't update already downloaded packages).


Solution based on:

  1. https://github.com/nandanhere/kivyTimeTable/blob/main/replaceNotification.py
  2. https://github.com/orgs/kivy/discussions/20
  3. https://github.com/kivy/kivy/wiki/Background-Service-using-P4A-android.service
  4. https://stackoverflow.com/questions/46760144/kivy-and-android-notifications

I tested this app with api_version >= 31 and api_version < 31. It works for Android 14.

About

A simple demo application for Android, in which the Plyer logic for sending notifications has been restored.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages