Skip to content

chore: [SDK-5803] default iOS demo to the shared example app - #1825

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

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

Conversation

@fadi-george

Copy link
Copy Markdown
Contributor

Description

One Line Summary

Build the iOS demo as com.onesignal.example on team 99SW8E36CT with the shared default app ID, and keep com.onesignal.sdkdemo for E2E.

Details

Motivation

Part of SDK-5802: every SDK demo should build out of the box against the shared example app, while E2E keeps the com.onesignal.sdkdemo / DL8TF3X4K3 identity its In House profiles are issued for.

Scope

  • Build.xcconfig defines DEMO_BUNDLE_ID (com.onesignal.example) and DEMO_TEAM_ID (99SW8E36CT). The Debug DEVELOPMENT_TEAM uses the team. Developers can override both in Local.xcconfig.
  • project.yml: the App, NSE and widget bundle IDs are $(DEMO_BUNDLE_ID), .NSE and .LA. App.xcodeproj is regenerated.
  • The App Group in both entitlements files and both Info.plists (OneSignal_app_groups_key) is group.$(DEMO_BUNDLE_ID).onesignal.
  • SecretsConfig.defaultAppId is now 1154c350-e715-4b71-a58b-1b84b6745baa.
  • A pre-build step creates an empty App/Secrets.plist when it's missing. Before this, a fresh clone failed with "Build input file cannot be found".
  • e2e.yml passes DEMO_BUNDLE_ID=com.onesignal.sdkdemo DEMO_TEAM_ID=DL8TF3X4K3 to the archive.
  • Docs are updated, and retry-test.sh defaults to com.onesignal.example.

Release signing, the Appium In House profiles and ExportOptions.plist are unchanged. They still apply only to the E2E bundle ID.

The matching sdk-shared run-local change, which passes the E2E bundle ID to the native iOS build, is on sdk-shared main.

Testing

Manual testing

  • Debug simulator build from the workspace, with no Secrets.plist: the bundles are com.onesignal.example, .NSE and .LA, and the App Group is group.com.onesignal.example.onesignal, both in the app and NSE entitlements and in OneSignal_app_groups_key.
  • run-local.sh --platform=ios --sdk=ios --install-only built Release for the simulator as com.onesignal.sdkdemo, .NSE and .LA with group.com.onesignal.sdkdemo.onesignal, and installed it.
  • xcodebuild -showBuildSettings for Release/iphoneos with the E2E overrides resolves to team DL8TF3X4K3 and the Appium Demo - Main profile.

The default app still needs APNs credentials for com.onesignal.example before push works on that bundle ID.

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 (demo config only)
  • 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 (simulator; device signing is covered by E2E CI)

Final pass

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

🤖 Generated with Claude Code

The demo builds as com.onesignal.example on team 99SW8E36CT with the
shared default app ID. E2E overrides DEMO_BUNDLE_ID / DEMO_TEAM_ID to keep
com.onesignal.sdkdemo on DL8TF3X4K3. A pre-build step creates an empty
Secrets.plist so a fresh clone builds without credentials.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fadi-george
fadi-george merged commit 0790760 into main Nov 24, 2026
6 checks passed
@fadi-george
fadi-george deleted the fadi/sdk-5803 branch November 24, 2026 19:44
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