Skip to content

Update React Native guide for push notifications plugin#3478

Open
ttypic wants to merge 2 commits into
mainfrom
AIT-1170/react-native-push-docs
Open

Update React Native guide for push notifications plugin#3478
ttypic wants to merge 2 commits into
mainfrom
AIT-1170/react-native-push-docs

Conversation

@ttypic

@ttypic ttypic commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Description

This pull request updates the React Native push notifications guide to incorporate the new ably/react-native-push plugin provided by the Ably JavaScript SDK v2.25.0. The updated guide includes:

Additionally, updates include adding the guide to the Pub/Sub navigation and providing a React Native example on the device activation page.

Checklist

@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 3e29265b-35d1-4add-a78c-7a3a8c63e2af

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch AIT-1170/react-native-push-docs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ttypic
ttypic requested a review from owenpearson July 21, 2026 09:05
@ttypic
ttypic force-pushed the AIT-1170/react-native-push-docs branch from 75bb1d7 to 11d7732 Compare July 21, 2026 09:09
@ttypic
ttypic requested a review from m-hulbert July 21, 2026 09:10
@ttypic ttypic added the review-app Create a Heroku review app label Jul 21, 2026
@ably-ci
ably-ci temporarily deployed to ably-docs-ait-1170-reac-npxg4u July 21, 2026 09:10 Inactive
@ttypic
ttypic force-pushed the AIT-1170/react-native-push-docs branch from 11d7732 to af0cf2b Compare July 21, 2026 11:20
@ably-ci
ably-ci had a problem deploying to ably-docs-ait-1170-reac-npxg4u July 21, 2026 11:20 Failure
Ably JavaScript SDK 2.25.0 adds first-class React Native push support via
the ably/react-native-push plugin, replacing the previous workaround of
registering devices through the push admin API. The getting-started guide
now creates the plugin with app-supplied AsyncStorage and a requestToken
callback, activates with push.activate(), reads device state with the new
getDevice(), and subscribes channels with channel.push.subscribeDevice().
Adds the guide to the Pub/Sub nav and a React Native example to the
device activation page.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ttypic
ttypic force-pushed the AIT-1170/react-native-push-docs branch from af0cf2b to 1d92a74 Compare July 21, 2026 12:31
@ably-ci
ably-ci temporarily deployed to ably-docs-ait-1170-reac-npxg4u July 21, 2026 12:31 Inactive
await saveDeviceRegistration(fcmToken);

tokenRefreshUnsubscribeRef.current?.();
tokenRefreshUnsubscribeRef.current = messaging().onTokenRefresh(async newToken => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how is onTokenRefresh supported with the new plugin? is it worth adding a note somewhere about what happens with tokens are rotated now?

…t Native

- Added details on using `push.updateToken()` to sync updated push tokens with Ably when rotated by the platform.
- Included examples for React Native setup and API usage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-app Create a Heroku review app

Development

Successfully merging this pull request may close these issues.

3 participants