- Android GCM
- Blackberry Push Protocol.
- iOS APN
- Windows Phone 7
- Symbian
- Browsers (With sockets)
- Windows 8
For a full project with mobile apps see the Demo Application.
You'll have to run "python setup.py install" or install Python AsyncHTTP and its dependences.
Sending a ping Push:
from python_push.push_manager import PushManager
from python_push.gcm.gcm_push_service import GCMPushService
from python_push.blackberry.bb_push_service import BBPushService
from python_push.message import Message
from python_push.device import Device
push_manager = PushManager([
GCMPushService({'api_id': 'GCM API KEY'}),
BBPushService({'api_id': 'BLACKBERRY APP ID', 'password': 'BLACKBERRY APP PASSWORD'})
])
msg = Message()
device_list = [
Device(BBPushService.type, 'BLACKBERRY DEVICE PIN'),
Device(GCMPushService.type, 'GCM DEVICE TOKEN')
]
status_dict = push_manager.send(msg, device_list)
for type, status in status_dict.iteritems():
print 'Service %s: Status %i, Content %s\n' % (type, status.code, status.raw)