API Reference

The APNS and GCM Flask clients are thin wrappers around the pushjack APNS and GCM clients. For further details, see the pushjack documentation.

APNS

class flask_pushjack.FlaskAPNS(app=None)[source]

Flask extension for APNS client.

client

Return push notification client associated with current app.

enabled

Return whether client is enabled.

get_expired_tokens(*args, **kargs)[source]

Return expired tokens.

init_app(app)[source]

Initialize extension with application configuration.

send(*args, **kargs)

Send push notification to single or multiple recipients.

GCM

class flask_pushjack.FlaskGCM(app=None)[source]

Flask extension for GCM client.

client

Return push notification client associated with current app.

enabled

Return whether client is enabled.

init_app(app)[source]

Initialize extension with application configuration.

send(*args, **kargs)

Send push notification to single or multiple recipients.