Skip to content

feat(amplify_push): add example app#7065

Closed
ekjotmultani wants to merge 0 commit into
feat/amplify-push-v3from
feat/amplify-push-v3-example
Closed

feat(amplify_push): add example app#7065
ekjotmultani wants to merge 0 commit into
feat/amplify-push-v3from
feat/amplify-push-v3-example

Conversation

@ekjotmultani

Copy link
Copy Markdown
Member

Summary

Adds a runnable example app for the amplify_push package so the push APIs can be exercised on a real device.

Stacked on #6985. This PR targets the feat/amplify-push-v3 branch (the package PR), so the diff shows only the example app. Once #6985 merges, this will be rebased onto main.

What the example does

  • Requests notification permission and shows current permission status
  • Displays the live device token from onTokenReceived
  • Shows foreground, opened, and launch notifications with an on-screen event log (no debugger needed)
  • iOS badge handling

Running it

cd packages/amplify_push/example
# Android: drop google-services.json in android/app/ (a placeholder is included)
# iOS: configure APNs in Xcode
flutter run

Send a test push via the Firebase Console (Messaging > Send test message) or curl for Android, or an APNs payload for iOS. See example/README.md for exact commands.

Verification

  • iOS builds with --no-codesign; AmplifyUtilsNotifications pod resolves
  • Example analyzes clean

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov-commenter

codecov-commenter commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 43.23%. Comparing base (9e9a51c) to head (4752904).

Additional details and impacted files
@@                  Coverage Diff                  @@
##           feat/amplify-push-v3    #7065   +/-   ##
=====================================================
  Coverage                 43.23%   43.23%           
=====================================================
  Files                        99       99           
  Lines                      7769     7769           
  Branches                   3401     3401           
=====================================================
  Hits                       3359     3359           
  Misses                     4410     4410           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ekjotmultani ekjotmultani force-pushed the feat/amplify-push-v3 branch from d479ea0 to 9e9a51c Compare June 29, 2026 20:15
@ekjotmultani ekjotmultani force-pushed the feat/amplify-push-v3-example branch from 72f0e4b to 4752904 Compare June 29, 2026 20:15
@ekjotmultani ekjotmultani force-pushed the feat/amplify-push-v3 branch from 9e9a51c to 5dbc37a Compare June 30, 2026 16:54
@ekjotmultani ekjotmultani force-pushed the feat/amplify-push-v3-example branch from 4752904 to 5dbc37a Compare June 30, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants