The purpose of this repository is to simplify the process of creating your own android package of binwiederhier/ntfy-android.
The main goal of creating your own package is to configure it with your Firebase account, so you can enable FCM notification on ntfy application, and use the Google Service for fetching messages instead of having a background task that perform permanent polling.
- Docker (tested on Windows, but should work on MacOS and Linux) ;
- A Firebase account, with the corresponding
google-services.json
; - A self-hosted ntfy instance, configured with corresponding
firebase-key-file
(Firebase documentation for ntfy).
git clone https://github.com/TheBlusky/ntfy-android-builder
;cd ntfy-android-builder
;- Add
google-services.json
in./volumes/firebase/
; - Copy
.env-dist
to.env
; - Edit
.env
with yourNTFY_APP_BASE_URL
; docker compose run --rm -it android
;- Install
builds/my-app-release.apk
on your android device.
(Do not install app-play-release-unsigned.apk
as it is not signed and, therefor, might be
installed correctly)
Everything runs inside a container, so you don't have to install SDK and care about dependencies, generating a certificate, signing an APK. The following is performed :
- Pulling compatible Android SDK;
- Generating a signing certificate;
- Pulling ntfy-android (main, tag or branch) ;
- Customizing code base with Firebase credential and base API URL;
- Compiling android project.