Skip to content

Commit

Permalink
Merge pull request GetStream#1775 from GetStream/develop
Browse files Browse the repository at this point in the history
Next Release
  • Loading branch information
santhoshvai authored Oct 27, 2022
2 parents b710793 + 879288d commit 316ce99
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

[![NPM](https://img.shields.io/npm/v/stream-chat-react-native.svg)](https://www.npmjs.com/package/stream-chat-react-native)
[![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)
[![Build Status](https://github.com/GetStream/stream-chat-react-native/workflows/build/badge.svg)](https://github.com/GetStream/stream-chat-react-native/actions)
[![Test Status](https://github.com/GetStream/stream-chat-react-native/workflows/test/badge.svg)](https://github.com/GetStream/stream-chat-react-native/actions)
[![Component Reference](https://img.shields.io/badge/docs-component%20reference-blue.svg)](https://getstream.io/chat/docs/sdk/reactnative)
[![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)

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

Expand Down
5 changes: 5 additions & 0 deletions docusaurus/docs/reactnative/basics/getting_started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ To be able to use the Stream Chat React Native SDK, a few dependencies must meet
| 0.64 | 3.6.2 | 2.2.0 |
| 0.63 | 3.0.0 | 2.2.0 |

#### Platform compatibilities

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.
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.

### Additional Steps

For some of the packages listed below, there are additional steps required to setup the package:
Expand Down
14 changes: 14 additions & 0 deletions docusaurus/docs/reactnative/guides/push_notifications_v2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,20 @@ client.updateAppSettings({
});
```
A good practice is to remove the badge count once the app is opened. We can do that using notifee like below:
```js
function App() {
useEffect(() => {
const clearBadge = async () => {
await notifee.setBadgeCount(0);
};
clearBadge();
}, []);
// Rest of your application
}
```
### Make iOS Payload Data Only
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:
Expand Down

0 comments on commit 316ce99

Please sign in to comment.