Skip to content

fix(js): Add 1.1.x version for js React Native v5 push notification #7689

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
In your project directory, you should first install the necessary dependencies for using Amplify Push Notifications.

```bash
npm install aws-amplify@^5 @aws-amplify/rtn-push-notification amazon-cognito-identity-js @react-native-community/netinfo @react-native-async-storage/async-storage react-native-get-random-values react-native-url-polyfill
npm install aws-amplify@^5 @aws-amplify/rtn-push-notification@~1.1.x amazon-cognito-identity-js @react-native-community/netinfo @react-native-async-storage/async-storage react-native-get-random-values react-native-url-polyfill
```

<Callout>

Note: Amplify JavaScript v5 is only compatible with @aws-amplify/rtn-push-notification version 1.1.x

</Callout>

You will also need to add the crypto.getRandomValues and URL polyfills to your application's entry point file (in most React Native apps this will be the top level `index.js`).

```js
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,15 @@ Please note that it's recommended to delete your `yarn.lock` file, `package-lock
2. Add the new native module to your project.

```bash
npm install @aws-amplify/rtn-push-notification
npm install @aws-amplify/rtn-push-notification@~1.1.x
```

<Callout>

Note: Amplify JavaScript v5 is only compatible with @aws-amplify/rtn-push-notification version 1.1.x

</Callout>

## Update build configurations

<BlockSwitcher>
Expand Down
Loading