EFF Alerts is an Ionic app for receiving news and push notifications from EFF.
Copyright (C) 2014-2016 Electronic Frontier Foundation (EFF).
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.
Table of Contents
EFF Alerts is a pager style app that notifies EFF supporters when EFF needs their help.
Although it works on both iOS and Android, the app is only targeting Android as of today. If you need to deploy to iOS as well, please check out the Ionic docs or contact the project maintainer for help.
The app is written using Cordova / Ionic, deploying an Angular webapp inside a UIWebView. This is to reduce the maintenance involved in managing multiple languages and fit with the existing EFF team's expertise.
Follow these instructions to develop EFF Alerts using Docker (recommended):
- Install Docker (instructions) and Docker Compose (instructions).
git clone https://github.com/EFForg/actioncenter-mobile.git
google-services.jsoninto the project root (if it's not available, just create it as an empty file).
- Copy your Android Keystore into the project root at
eff-alerts.keystore(only required if you are building a signed APK).
- Build the docker image:
sudo docker-compose build
- Run the application:
sudo docker-compose up
- Access the app in a web browser at http://localhost:4001/.
NOTE: the app assumes the presence of various plugins that a browser doesn't have, so some actions, e.g. share buttons etc. will not work and will throw errors
sudo docker-compose exec app gulp test
See the www/README.md for details