https://github.com/andreid/pushnotificationsserver
Flask with Google Cloud Messaging for Android
https://github.com/andreid/pushnotificationsserver
Last synced: about 1 year ago
JSON representation
Flask with Google Cloud Messaging for Android
- Host: GitHub
- URL: https://github.com/andreid/pushnotificationsserver
- Owner: AndreiD
- Created: 2014-09-11T12:16:39.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-11-11T17:25:53.000Z (over 11 years ago)
- Last Synced: 2025-01-31T07:14:22.892Z (over 1 year ago)
- Language: Python
- Size: 387 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
GCM Flask Server
========================
Integration of https://github.com/geeknam/python-gcm into flask
Features:
- Everything that python-gcm has: Supports multicast message, Resend messages using exponential back-off, Proxy support, Easily handle errors
- Admin panel with user managment
- REST API for easy posting from your android app
- Sending messages to all or only to specific categories


#### How to use it:
- `git clone https://github.com/AndreiD/PushNotificationsServer.git ` or download the zip
- `pip install -r requirements.txt`
- edit the `config.py` with your settings!
- in **run.py** edit the port of the app (Default: 1337)
- `python run.py` -> http://server_ip:1337
- play with it
- modify the API KEY and admin user/password (TODO: move them to config)
#### The android client
- Option 1: step by step follow the official tutorials
- Option 2: https://github.com/AndreiD/PushNotificationsApp
#### Attention:
About security: at the moment the api is protected only by a secret key. Use ProGuard in your android app, SSL, other auth methods, etc etc
optional edit `/app/templates/base.html`
>
>
> {% set bootstrap_version = '3.2.0' %}
> {% set jquery_version = '2.1.1' %}
> {% set modernizer_version = '2.8.2' %}
> {% set bootswatch_version = '3.2.0' %}
> {% set bootswatch_theme = 'slate' %}
In case a new version appears, and you want to use it. modify it. also you can chose a nice theme from http://bootswatch.com/
in __/app/models.py__ an example with "expenses list" is added.
an example with PAGINATION
##### Extras:
- a supervisord.conf [supervisor is used to monitor the web application and restart it, also starts the app in case you restart your server]
- a simple nginx.conf