Skip to content

chore: [SDK-5806] default demos to the shared example app - #2024

Merged
fadi-george merged 1 commit into
mainfrom
fadi-SDK-5806
Nov 24, 2026
Merged

fadi-george merged 1 commit into
mainfrom
fadi-SDK-5806

Conversation

@fadi-george

@fadi-george fadi-george commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Description

One Line Summary

React Native demos build and run against the shared OneSignal example app out of the box, while e2e keeps using com.onesignal.sdkdemo.

Details

Motivation

com.onesignal.sdkdemo is registered to the enterprise team (DL8TF3X4K3), so nobody outside it can sign the demo, and a bundle ID can only belong to one team. The demos also failed to bundle without an app ID in .env. Same pattern as the Capacitor pilot (OneSignal/OneSignal-Capacitor-SDK#89).

Scope

  • Defaults: iOS bundle ID com.onesignal.example on team 99SW8E36CT, Android applicationId com.onesignal.example, app ID 1154c350-e715-4b71-a58b-1b84b6745baa. An empty ONESIGNAL_APP_ID now uses the default; the metro.config.js check that failed the bundle is removed.
  • examples/demo and examples/demo-pods:
    • iOS reads DEMO_BUNDLE_ID / DEMO_TEAM_ID from ios/demo.xcconfig (project-level base config), with an optional gitignored ios/local.xcconfig override. Extension (.NSE, .LA) and app group IDs derive from DEMO_BUNDLE_ID.
    • Android (demo only) reads -PDEMO_BUNDLE_ID, default com.onesignal.example.
  • E2E: e2e.yml passes DEMO_BUNDLE_ID=com.onesignal.sdkdemo DEMO_TEAM_ID=DL8TF3X4K3 to xcodebuild and -PDEMO_BUNDLE_ID=com.onesignal.sdkdemo to Gradle, so the e2e app, profiles and google-services.json are unchanged. sdk-shared run-local passes the same overrides for React Native (OneSignal/sdk-shared@d2feac3).
  • demo-no-location: not built by e2e, so the new IDs, team and app ID are set directly.
  • Not changed: Android namespace / Kotlin packages, ExportOptions.plist, and the enterprise release profiles.

Follow-ups

  • The default app needs APNs and FCM credentials for com.onesignal.example.

Testing

Manual testing

  • xcodebuild -showBuildSettings in demo and demo-pods resolves com.onesignal.example (+ .NSE, .LA) on 99SW8E36CT by default, and com.onesignal.sdkdemo on DL8TF3X4K3 with the e2e overrides.
  • Gradle resolves applicationId com.onesignal.example by default, com.onesignal.sdkdemo with -PDEMO_BUNDLE_ID, and falls back to the default when blank.
  • vp test passes; vp check passes except for tsconfig errors in demos whose deps weren't installed locally.
  • Not yet: full device builds or an e2e run.

Affected code checklist

  • Notifications
    • Display
    • Open
    • Push Processing
    • Confirm Deliveries
  • 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

🤖 Generated with Claude Code

Demos build com.onesignal.example (team 99SW8E36CT) with the shared
OneSignal app by default; e2e overrides back to com.onesignal.sdkdemo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fadi-george
fadi-george requested a review from a team as a code owner November 24, 2026 00:00
@fadi-george
fadi-george merged commit 5cedbe4 into main Nov 24, 2026
4 checks passed
@fadi-george
fadi-george deleted the fadi-SDK-5806 branch November 24, 2026 18:18
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