Add Flutter push notifications getting started guide#3249
Draft
Add Flutter push notifications getting started guide#3249
Conversation
New tutorial covering FCM/APNs push setup in Flutter using the ably_flutter SDK, with steps for activation, channel subscriptions, foreground message handling, and sending push via deviceId, clientId, and channel publish. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Remove erroneous await from realtime.device calls in _activatePush and _sendPushToDevice, confirmed by dart fix in the reference app. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Restore await and add parentheses: realtime.device() returns a Future. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Push Admin API is on ably.Rest, not ably.Realtime. Add Rest instance to AblyService and use rest.push.admin.publish() for device/client push. Restore sendPushToDevice, sendPushToClient, and their buttons in Step 5. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
PushAdmin is defined as an abstract class in ably_flutter but not wired up to either Rest or Realtime. Remove sendPushToDevice and sendPushToClient entirely. Step 5 now only covers channel publish with push extras, which is the correct client-side approach. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/pages/docs/push/getting-started/flutter.mdx— a 5-step tutorial for Ably push notifications in Flutterably_flutterpush activation/deactivation, channel subscriptions, foreground message handling, and sending push via deviceId, clientId, and channel publishpubsub.tsTest plan
/docs/push/getting-started/flutterflutterlanguage identifier<Aside>and<Code>components display correctly🤖 Generated with Claude Code