Repository navigation
chore: [SDK-5808] default Unity demos to the shared example app - #919
Merged
Merged
Conversation
Both demos default to com.onesignal.example (team 99SW8E36CT) and the shared default app ID. BuildScript takes -demoBundleId / -demoTeamId for E2E (com.onesignal.sdkdemo / DL8TF3X4K3) and restores the project settings after the build. A missing .env or app ID no longer fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sherwinski
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
One Line Summary
Build the Unity demos as
com.onesignal.example(team99SW8E36CT) with the shared default app ID, and keepcom.onesignal.sdkdemo/DL8TF3X4K3for 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 identity its signing profiles and FCM config use.
Scope
ProjectSettings.asset(bothdemoanddemo-no-location): the Android and iOS bundle ID iscom.onesignal.example, andappleDeveloperTeamIDis99SW8E36CT.BuildScriptreads-demoBundleId/-demoTeamIdfrom the Unity command line and applies them for that build only. The original Player Settings are restored in afinallyblock, so the override never lands inProjectSettings.asset.SigningPostProcessortakes the team from Player Settings instead of a hard-codedDL8TF3X4K3. The NSE and widget still get<bundle>.NSE/<bundle>.LA.e2e.ymlpassescustomParameters: -demoBundleId com.onesignal.sdkdemo(plus-demoTeamId DL8TF3X4K3on iOS) to game-ci. The xcodebuild and ExportOptions signing are unchanged.demo:CopyEnvPreBuildno longer fails without.env(and drops a stale StreamingAssets copy), andAppBootstrapperfalls back to1154c350-e715-4b71-a58b-1b84b6745baa.demo-no-location: the scene and component default is the same app ID instead of theYOUR-ONESIGNAL-APP-IDplaceholder.run-*.shscripts,AndroidResolverDependencies.xml, the READMEs,build.mdand.env.exampleare updated.The matching sdk-shared
run-localchange, which passes-demoBundleId "$BUNDLE_ID"(and-demoTeamIdon iOS), is on sdk-shared main.Testing
Manual testing
run-local --sdk=unity --spec=01_user: built with-demoBundleId com.onesignal.sdkdemo, installed ascom.onesignal.sdkdemo, 2 of 2 passing.ProjectSettings.assetwas unchanged afterwards.BuildAndroidEmulatorwith no arguments and no.env: the APK iscom.onesignal.examplewith no.envbundled. On an emulator, the SDK initialized with1154c350-e715-4b71-a58b-1b84b6745baa.run-local --sdk=unity --install-onlyon a simulator:com.onesignal.sdkdemo,.NSEand.LA.DEVELOPMENT_TEAM=DL8TF3X4K3is set on all three targets.group.com.onesignal.sdkdemo.onesignal.Push on
com.onesignal.exampleneeds APNs/FCM credentials on the default app.Affected code checklist
Checklist
Overview
Testing
Final pass
🤖 Generated with Claude Code