Skip to content

Add Flutter push notifications getting started guide#3249

Draft
maratal wants to merge 5 commits intomainfrom
DX-284-flatter-push-guide
Draft

Add Flutter push notifications getting started guide#3249
maratal wants to merge 5 commits intomainfrom
DX-284-flatter-push-guide

Conversation

@maratal
Copy link
Collaborator

@maratal maratal commented Mar 5, 2026

Summary

  • Adds src/pages/docs/push/getting-started/flutter.mdx — a 5-step tutorial for Ably push notifications in Flutter
  • Covers Firebase/FCM setup for both iOS and Android, ably_flutter push activation/deactivation, channel subscriptions, foreground message handling, and sending push via deviceId, clientId, and channel publish
  • Adds Flutter entry to the Push → Getting started nav section in pubsub.ts

Test plan

  • Verify the page renders at /docs/push/getting-started/flutter
  • Verify Flutter appears in the Push → Getting started nav
  • Check code blocks render correctly with flutter language identifier
  • Check <Aside> and <Code> components display correctly
  • Test CLI commands in Step 3 against a real device

🤖 Generated with Claude Code

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>
@maratal maratal added the review-app Create a Heroku review app label Mar 5, 2026
@ably-ci ably-ci temporarily deployed to ably-docs-dx-284-flatte-gskfom March 5, 2026 15:13 Inactive
@coderabbitai
Copy link

coderabbitai bot commented Mar 5, 2026

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: 888b3902-8cb3-4692-bc1e-25abcb91463b

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
  • Post copyable unit tests in a comment
  • Commit unit tests in branch DX-284-flatter-push-guide

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 and usage tips.

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>
@ably-ci ably-ci temporarily deployed to ably-docs-dx-284-flatte-gskfom March 5, 2026 22:52 Inactive
Restore await and add parentheses: realtime.device() returns a Future.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ably-ci ably-ci had a problem deploying to ably-docs-dx-284-flatte-gskfom March 5, 2026 23:00 Failure
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>
@ably-ci ably-ci had a problem deploying to ably-docs-dx-284-flatte-gskfom March 6, 2026 00:08 Failure
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>
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.

2 participants