autopush.router.gcm

GCM Router

class autopush.router.gcm.GCMRouter(conf, router_conf, metrics)[source]

GCM Router Implementation

__init__(conf, router_conf, metrics)[source]

Create a new GCM router and connect to GCM

register(uaid, router_data, app_id, *args, **kwargs)[source]

Validate that the GCM Instance Token is in the router_data

route_notification(notification, uaid_data)[source]

Start the GCM notification routing, returns a deferred

_route(notification, uaid_data)[source]

Blocking GCM call to route the notification

_error(err, status, **kwargs)[source]

Error handler that raises the RouterException

_process_reply(reply, uaid_data, ttl, notification)[source]

Process GCM send reply