Skip to content

feat(demo): [SDK-4217] add Live Activities demp example#1933

Merged
fadi-george merged 9 commits intomainfrom
fadi/sdk-4217-react-native-sdk-live-activities
Mar 31, 2026
Merged

feat(demo): [SDK-4217] add Live Activities demp example#1933
fadi-george merged 9 commits intomainfrom
fadi/sdk-4217-react-native-sdk-live-activities

Conversation

@fadi-george
Copy link
Copy Markdown
Collaborator

@fadi-george fadi-george commented Mar 31, 2026

Description

One Line Summary

Add Live Activities support to the React Native demo app with an iOS delivery order tracking widget.

Screenshot 2026-03-31 at 2 49 30 PM Screenshot 2026-03-31 at 2 48 31 PM Screenshot 2026-03-31 at 2 48 24 PM

Details

Motivation

The demo app was missing Live Activities support, which is needed to demonstrate and test the OneSignal Live Activities SDK features (push-to-start, push-to-update) from the React Native wrapper.

Scope

  • Demo app: Adds a LiveActivitySection (iOS only) with start, update (cycle through order statuses), stop updating, and end buttons
  • iOS widget: Adds OneSignalWidgetLiveActivity widget extension with Lock Screen banner, Dynamic Island, and animated delivery progress bar displaying order number, status, message, and ETA
  • API integration: Update and end operations go through the OneSignal REST API using ONESIGNAL_API_KEY from .env (via react-native-dotenv); start and stop-updating use the SDK directly
  • Cleanup: Remove duplicate plugins key in babel.config.js and duplicate .env entry in .gitignore
  • No SDK changes

Testing

Unit testing

All 244 existing tests pass via vp test. No new unit tests needed — changes are limited to the demo app UI and API calls.

Manual testing

  • Configure .env with a valid ONESIGNAL_API_KEY and verify update/end buttons are enabled
  • Run without .env and verify update/end buttons are disabled
  • Start a live activity and verify the Lock Screen banner and Dynamic Island render correctly
  • Cycle through all order statuses (preparing → on the way → delivered) and verify the widget updates
  • End the live activity and verify it dismisses
  • Verify Live Activities section only appears on iOS

Affected code checklist

  • Notifications
    • Display
  • 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

@fadi-george fadi-george requested a review from a team as a code owner March 31, 2026 21:43
@fadi-george fadi-george changed the title feat(demo): add Live Activities support with delivery tracking feat(demo): [SDK-4217] add Live Activities support with delivery tracking Mar 31, 2026
@fadi-george fadi-george changed the title feat(demo): [SDK-4217] add Live Activities support with delivery tracking feat(demo): [SDK-4217] add Live Activities demp example Mar 31, 2026
@fadi-george fadi-george merged commit 5c36239 into main Mar 31, 2026
9 checks passed
@fadi-george fadi-george deleted the fadi/sdk-4217-react-native-sdk-live-activities branch March 31, 2026 23:30
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