Skip to content

Commit 6fec15e

Browse files
committed
📝 Update README and CHANGELOG
1 parent e42f1fa commit 6fec15e

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ $message = new Message(
7777
);
7878
````
7979

80+
#### What's Changed
81+
* :bug: Allow to send message with data only by @ker0x in https://github.com/ker0x/fcm/pull/27
82+
83+
**Full Changelog**: https://github.com/ker0x/fcm/compare/3.1.0...3.2.0
84+
8085
### 3.1
8186

8287
#### What's Changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ $fcm = new Fcm('<oauth_token>', '<project_id>');
4343

4444
// Create the message
4545
$message = new Message(
46-
notification: new Notification(
47-
title: 'Hello World',
48-
body: 'My awesome Hello World!'
49-
),
5046
target: new Token('TopicA'),
5147
data: [
5248
'story_id' => 'story_12345',
5349
],
50+
notification: new Notification(
51+
title: 'Hello World',
52+
body: 'My awesome Hello World!'
53+
),
5454
)
5555

5656
// Send the message and get the response

0 commit comments

Comments
 (0)