Skip to content

Commit db4a6af

Browse files
author
Luís Fonseca
authored
Merge pull request #1 from pusher/update-example
Add FCM to the example publish
2 parents 171da22 + 732834b commit db4a6af

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ Once you have created your PushNotifications instance you can publish a push not
4242

4343
.. code::
4444
45-
response = pn_client.publish(interests=['hello'], publish_body={'apns': {'aps': {'alert': 'Hello!'}}})
45+
response = pn_client.publish(
46+
interests=['hello'],
47+
publish_body={'apns': {'aps': {'alert': 'Hello!'}}, 'fcm': {'notification': {'title': 'Hello', 'body': 'Hello, World!'}}}
48+
)
4649
4750
print(response['publishId'])

0 commit comments

Comments
 (0)