Skip to content

Kivy (KivyMD) example using android services and push notifications

Notifications You must be signed in to change notification settings

sorgmi/kivy_android_service_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kivy android service and push notification example

Demo App which shows how to use push notifications and android services in your KivyMD App.

Features:

  1. cross-platform application (Windows, Linux, Mac, Android, iOS) using KivyMD
  2. push notifications using plyer
  3. Android background services using pyjnius
Screenshot 1 Screenshot 2

Run desktop version

pip install kivymd plyer
python main.py

Build android app

Option 1 using Docker (recommended):

docker run --volume "$HOME/.buildozer":/home/user/.buildozer --volume "$PWD":/home/user/hostcwd kivy/buildozer android debug

The Android .apk is now inside the bin/ folder

Option 2 building local (Ubuntu):

sudo apt update

sudo apt install \
    autoconf \
    automake \
    build-essential \
    ccache \
    cmake \
    gettext \
    git \
    libffi-dev \
    libltdl-dev \
    libssl-dev \
    libtool \
    openjdk-13-jdk \
    patch \
    pkg-config \
    python3-pip \
    python3-setuptools \
    sudo \
    unzip \
    zip \
    zlib1g-dev
    
pip install --upgrade Cython==0.29.19 wheel pip virtualenv
pip install buildozer

buildozer android debug

Build Desktop Binary (Windows, Linux, Mac)

pip install pyinstaller kivymd plyer
pyinstaller main.spec

On Windows binary can be found now at dist/main.exe

About

Kivy (KivyMD) example using android services and push notifications

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages