Skip to content

Releases: olucurious/PyFCM

2.0.1

18 Jun 22:58
Compare
Choose a tag to compare

Migration to FCM v1 API

See details: https://firebase.google.com/docs/cloud-messaging/migrate-v1

Simplified usage - .notify_* renamed to plain .notify() with parameters changed as well. Details in README.md

Fix timeout errors

28 Nov 16:53
52f697a
Compare
Choose a tag to compare
1.4.8

Update fcm.py

New changes

16 Aug 06:02
Compare
Choose a tag to compare

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

DECEMBER 2016 API CHANGES

13 Dec 02:47
Compare
Choose a tag to compare
  • 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