Skip to content

Commit 88e1573

Browse files
authored
fix: clarify the order of setLocalDevice (#2181)
1 parent d8d7387 commit 88e1573

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docusaurus/reactnative_versioned_docs/version-4.x.x/guides/push_notifications_v2.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,12 @@ const styles = StyleSheet.create({
196196
});
197197
```
198198
199+
:::note
200+
201+
Please note that `client.setLocalDevice` should be made before `client.connectUser` in code.
202+
203+
:::
204+
199205
## The Push Notification Message Payload
200206
201207
When a message is received by the Chat API, if the [requirements](#requirements) are met, it kicks a job to send a notification message to Firebase.

0 commit comments

Comments
 (0)