Push Notification Sender for Home Assistant official mobile apps
Go to file
dependabot[bot] 9127deaec3
Bump w9jds/firebase-action from 13.28.0 to 13.29.1 (#181)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-16 08:02:17 +01:00
.github Bump w9jds/firebase-action from 13.28.0 to 13.29.1 (#181) 2024-12-16 08:02:17 +01:00
.vscode Add tests, VSCode setup, and update dependencies (#55) 2021-05-23 14:37:52 -07:00
functions Bump path-to-regexp and express in /functions (#179) 2024-12-06 06:38:42 +01:00
public Redirect to mobile_app docs 2019-03-31 17:47:45 -07:00
.firebaserc Initial commit 2019-03-30 22:21:35 -07:00
.gitignore Add tests, VSCode setup, and update dependencies (#55) 2021-05-23 14:37:52 -07:00
CLA.md Add required docs 2019-12-03 23:50:38 -05:00
CODE_OF_CONDUCT.md Add required docs 2019-12-03 23:50:38 -05:00
CONTRIBUTING.md Add required docs 2019-12-03 23:50:38 -05:00
LICENSE.md Add required docs 2019-12-03 23:50:38 -05:00
README.md Allow deploying to other locations than us-central1 (#23) 2020-10-12 09:28:38 -04:00
codecov.yaml Add tests, VSCode setup, and update dependencies (#55) 2021-05-23 14:37:52 -07:00
firebase.json Add iOS specific route 2020-07-03 16:53:18 -07:00

README.md

mobile-apps-fcm-push

This is the code that powers the official mobile app push notifications. Feel free to submit PRs!

Developer Setup

Install NPM dependencies:

cd functions
npm install

Startup function for local testing:

# Only Once
npm install -g firebase-tools

firebase functions:config:set debug.local=true
firebase functions:config:get > .runtimeconfig.json

# Whenever you want to start
npm run serve

Deploy your own

Change the target project if needed:

# Only once
sed -i s/home-assistant-mobile-apps/myproject/g ../.firebaserc

You can set the app.region setting if you want to deploy your functions in a another location than us-central1, e.g. europe-west1:

# Only once
firebase functions:config:set app.region="us-central1"

Then deploy the Cloud Functions:

firebase deploy