Skip to content

Commit 316ce99

Browse files
authored
Merge pull request #1775 from GetStream/develop
Next Release
2 parents b710793 + 879288d commit 316ce99

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
1010

1111
[![NPM](https://img.shields.io/npm/v/stream-chat-react-native.svg)](https://www.npmjs.com/package/stream-chat-react-native)
12-
[![Build Status](https://github.com/GetStream/stream-chat-react-native/workflows/test/badge.svg?branch=main)](https://github.com/GetStream/stream-chat-react-native/actions)
12+
[![Build Status](https://github.com/GetStream/stream-chat-react-native/workflows/build/badge.svg)](https://github.com/GetStream/stream-chat-react-native/actions)
13+
[![Test Status](https://github.com/GetStream/stream-chat-react-native/workflows/test/badge.svg)](https://github.com/GetStream/stream-chat-react-native/actions)
1314
[![Component Reference](https://img.shields.io/badge/docs-component%20reference-blue.svg)](https://getstream.io/chat/docs/sdk/reactnative)
14-
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=GetStream_stream-chat-react-native&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=GetStream_stream-chat-react-native)
1515

1616
<img align="right" src="https://getstream.imgix.net/images/ios-chat-tutorial/[email protected]?auto=format,enhance" width="50%" />
1717

docusaurus/docs/reactnative/basics/getting_started.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ To be able to use the Stream Chat React Native SDK, a few dependencies must meet
100100
| 0.64 | 3.6.2 | 2.2.0 |
101101
| 0.63 | 3.0.0 | 2.2.0 |
102102

103+
#### Platform compatibilities
104+
105+
We only support **Android** and **iOS** as platforms for the React Native SDK. We do not support **Web** currently, but this is in our backlog, and we plan to take this up in the future.
106+
As an alternative, you can use Stream's [React SDK](https://getstream.io/chat/docs/sdk/react/) for Web. The React SDK follows the same API and Component convention and is very similar to the React Native SDK.
107+
103108
### Additional Steps
104109

105110
For some of the packages listed below, there are additional steps required to setup the package:

docusaurus/docs/reactnative/guides/push_notifications_v2.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,20 @@ client.updateAppSettings({
501501
});
502502
```
503503
504+
A good practice is to remove the badge count once the app is opened. We can do that using notifee like below:
505+
506+
```js
507+
function App() {
508+
useEffect(() => {
509+
const clearBadge = async () => {
510+
await notifee.setBadgeCount(0);
511+
};
512+
clearBadge();
513+
}, []);
514+
// Rest of your application
515+
}
516+
```
517+
504518
### Make iOS Payload Data Only
505519
506520
If the iOS payload is made to be data only, then `setBackgroundMessageHandler` can be used to display notifications using Notifee. The payload can be customized using the JavaScript SDK like below:

0 commit comments

Comments
 (0)