Skip to content

Commit 7dd232b

Browse files
author
Paolo D'Incau
committed
Updating Readme
1 parent 2de69ea commit 7dd232b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ The JSON message is built using `jsx` in the module `gcm.erl` and in the end wil
6565

6666
You can send this message using this sentence:
6767

68+
8> gcm:push(RegisteredName, RegIds, [{<<"data">>, [
69+
8> {<<"message">>, <<"a message">>}
70+
8> ]}, {<<"time_to_live">>,3600}, {<<"collapse_key">>,<<"your_update">>}]).
71+
72+
or simply:
73+
6874
8> gcm:push(RegisteredName, RegIds, [{<<"data">>, [
6975
8> {<<"message">>, <<"a message">>}
7076
8> ]}]).

0 commit comments

Comments
 (0)