Support sending notifications in batch. (#27)

This commit is contained in:
Matan Gover
2017-01-23 20:10:35 +03:00
committed by Sergey Petrov
parent 1262d6c2bd
commit 701b587c32
9 changed files with 279 additions and 23 deletions
+25
View File
@@ -23,6 +23,31 @@ client.send_notification(token_hex, payload)
[iOS Reference Library: Local and Push Notification Programming Guide][a1]
## Contributing
To develop PyAPNs2, check out the code and install dependencies. It's recommended to use a virtualenv to isolate dependencies:
```shell
# Clone the source code.
git clone https://github.com/Pr0ger/PyAPNs2.git
cd PyAPNs2
# Create a virtualenv and install dependencies.
virtualenv venv
. venv/bin/activate
pip install -e .
```
To run the tests:
```shell
pip install -r requirements-dev.txt
python -m unittest discover test
```
To run the linter:
```shell
pip install pylint
pylint --reports=n apns2 test
```
## License
PyAPNs2 is distributed under the terms of the MIT license.