Skip to content

chore: [SDK-5809] default Expo demos to the shared example app - #332

Merged
fadi-george merged 1 commit into
mainfrom
fadi/sdk-5809
Nov 24, 2026
Merged

fadi-george merged 1 commit into
mainfrom
fadi/sdk-5809

Conversation

@fadi-george

Copy link
Copy Markdown
Contributor

Description

One Line Summary

Expo 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 demo also failed prebuild without an app ID in .env. Same pattern as the Capacitor pilot (OneSignal/OneSignal-Capacitor-SDK#89) and React Native (OneSignal/react-native-onesignal#2024).

Scope

  • Defaults: iOS bundle ID com.onesignal.example on team 99SW8E36CT, Android package com.onesignal.example, app ID 1154c350-e715-4b71-a58b-1b84b6745baa. An empty EXPO_PUBLIC_ONESIGNAL_APP_ID now uses the default; the app.config.ts check that failed prebuild is removed.
  • examples/demo: app.config.ts reads DEMO_BUNDLE_ID / DEMO_TEAM_ID (env or .env) for bundleIdentifier, appleTeamId and package, since prebuild regenerates the native projects. The NSE, widget and app group IDs derive from the bundle ID.
  • E2E: e2e.yml sets DEMO_BUNDLE_ID=com.onesignal.sdkdemo on both build jobs and DEMO_TEAM_ID=DL8TF3X4K3 on iOS, so the e2e app, profiles and google-services.json are unchanged. sdk-shared run-local does the same (OneSignal/sdk-shared@e529fc6).
  • demo-no-location, disable-nse, expo-notif: not built by e2e, so the new IDs, team and app ID are set directly. The "set your app ID" placeholder guards are removed.
  • Not changed: ExportOptions.plist and the enterprise release profiles.

Follow-ups

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

Testing

Manual testing

  • expo config in examples/demo resolves com.onesignal.example / 99SW8E36CT and app group group.com.onesignal.example.onesignal by default, and com.onesignal.sdkdemo / DL8TF3X4K3 with the e2e env.
  • vp test passes. vp check has no format or lint issues from this change; the remaining type errors come from example apps whose dependencies weren't installed locally.
  • Not yet: 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 sets DEMO_BUNDLE_ID/DEMO_TEAM_ID back to
com.onesignal.sdkdemo on the enterprise team.

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 18:24
@fadi-george
fadi-george merged commit e6dae56 into main Nov 24, 2026
2 checks passed
@fadi-george
fadi-george deleted the fadi/sdk-5809 branch November 24, 2026 19:07
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