Skip to content

feat: add Live Activities support to demo app#1132

Merged
fadi-george merged 6 commits intomainfrom
fadi/sdk-4216-flutter-sdk-live-activities
Apr 1, 2026
Merged

feat: add Live Activities support to demo app#1132
fadi-george merged 6 commits intomainfrom
fadi/sdk-4216-flutter-sdk-live-activities

Conversation

@fadi-george
Copy link
Copy Markdown
Collaborator

@fadi-george fadi-george commented Apr 1, 2026

Description

One Line Summary

Add Live Activities section to the Flutter demo app with full start/update/end lifecycle support.

Screenshot 2026-03-31 at 5 51 33 PM Screenshot 2026-03-31 at 5 20 05 PM Screenshot 2026-03-31 at 5 20 00 PM Screenshot 2026-03-31 at 5 15 59 PM

Details

Motivation

The demo app was missing Live Activities support. The iOS widget extension existed but the Flutter side had no UI, no SDK initialization (setupDefault), and no REST API integration for updating/ending activities.

Scope

  • Flutter demo app only — no SDK changes
  • Adds Live Activities section (iOS only) with Activity ID and Order # inputs
  • Four actions: Start, Update (cycles through preparing → on the way → delivered), Stop Updating, End
  • REST API integration for update/end via OneSignal Live Activities API
  • .env-based API key configuration with flutter_dotenv
  • NSSupportsLiveActivities added to main app Info.plist (was only on widget extension)
  • Updated build_ios.md to document DefaultLiveActivityAttributes widget and Info.plist requirements

Testing

Manual testing

Tested on iOS simulator (iOS 26.2):

  • Start Live Activity displays lock screen banner and Dynamic Island with order status
  • Update cycles through statuses (preparing → on the way → delivered) via REST API
  • End dismisses the Live Activity via REST API
  • Stop Updating unsubscribes from remote updates via SDK
  • Buttons correctly disabled when Activity ID is empty or API key is not configured

Affected code checklist

  • Notifications
  • Outcomes
  • Sessions
  • In-App Messaging
  • REST API requests
  • Public API changes

Checklist

Overview

  • I have filled out all REQUIRED sections above
  • PR does one thing
  • Any Public API changes are explained in the PR details and conform to existing APIs

Testing

  • I have included test coverage for these changes, or explained why they are not needed
  • All automated tests pass, or I explained why that is not possible
  • I have personally tested this on my device, or explained why that is not possible

Final pass

  • Code is as readable as possible.
  • I have reviewed this PR myself, ensuring it meets each checklist item

Made with Cursor

@fadi-george fadi-george requested a review from a team as a code owner April 1, 2026 00:52
@fadi-george fadi-george merged commit 7f0169d into main Apr 1, 2026
6 checks passed
@fadi-george fadi-george deleted the fadi/sdk-4216-flutter-sdk-live-activities branch April 1, 2026 16:40
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