A minimal Django app that implements Device models that can send messages through APNS, FCM/GCM, WNS and WebPush. The app also implements an admin panel, through which you can test single and bulk notifications. Select one or more FCM/GCM, APNS, WNS or WebPush devices and in the action dropdown, select "Send test message" or "Send test message in bulk", accordingly. Note that sending a non-bulk test message to more than one device will just iterate over the devices and send multiple single messages. UPDATE_ON_DUPLICATE_REG_ID: Transform create of an existing Device (based on registration id) into an update. Sending messages in bulk makes use of the bulk mechanics offered by GCM and APNS. It is almost always preferable to send bulk notifications instead of single ones.
Features
- You can install the library directly from pypi using pip
- A foreign key to auth.User, if you wish to link the device to a specific user
- The app implements four models
- Works with Django 2.2+
- Supports Python 3.6+
- Apple Push (APNS), apns2 0.3+ is required