Skip to content

Installation 3.x

Dongsheng Cai edited this page Feb 11, 2020 · 2 revisions

Install AirNotifier App Server

Install mongodb

https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/

Install required ubuntu packages

sudo apt-get install python3-pip build-essential git
pip3 install pipenv --user

Download AirNotifier app

cd ~
git clone -b master git://github.com/airnotifier/airnotifier.git airnotifier
cd airnotifier
pipenv install --deploy

Copy config.py-sample to config.py, and change the settings accordingly. (change pemdir to /var/airnotifier/pemdir)

Run the command below to set up the initial admin user:

pipenv run ./install.py

Starting AirNotifier app

sudo pipenv run ./app.py

Setting up AirNotifier in browser

  • In your browser: http://your_server_ip_address:8801 - Login as admin@airnotifier/admin
  • Create a new an application

iOS push notification settings

Please follow the steps in this page: https://developer.clevertap.com/docs/how-to-create-an-ios-apns-auth-key

AirNotifier needs following values:

  • team id
  • your app's bundle id
  • key id
  • .p8 file's content

Android FCM push notification settings

  • Create an firebase app from here: https://console.firebase.google.com/
  • Find the "Project ID" in project settings page: https://console.firebase.google.com/project/<PROJECT-ID>/settings/general/
  • Get the json key file from "Project settings" => "Service accounts", then generate the private key, download the json file, and copy paste content to airnotifier FCM settings.