PyFCM Versions Save

Python client for FCM - Firebase Cloud Messaging (Android, iOS and Web)

1.4.8

3 years ago

1.4.0

6 years ago

Response of the notify_topic_subscribers, notify_single_device and notify_multiple_devices now looks like this: """ Returns a python dict of multicast_ids(list), success(int), failure(int), canonical_ids(int), results(list) and optional topic_message_id(str but None by default) """

response_dict = { 'multicast_ids': list(), 'success': 0, 'failure': 0, 'canonical_ids': 0, 'results': list(), 'topic_message_id': None }

There's also a new timeout option to specify request timeout when calling notify_topic_subscribers, notify_single_device or notify_multiple_devices

result = push_service.notify_single_device(registration_id=registration_id, message_title=message_title, message_body=message_body, timeout=10) The timeout option above adds a 10 seconds timeout to the individual requests

1.2.0

7 years ago
  • Updated response retrieval, notify_single_device response returns single dict while notify_multiple_devices returns a list of dicts
  • You can now pass extra argument by passing it as key value in a dictionary as extra_kwargs to any notification sending method you want to use
  • It is now possible to send a notification without setting body or content available