Repository navigation
chore: [SDK-5801] default Capacitor demos to the shared example app - #89
Merged
Merged
Conversation
….example Bundle IDs, team and app group now come from DEMO_BUNDLE_ID/DEMO_TEAM_ID in ios/demo.xcconfig, with an optional gitignored local.xcconfig override. The e2e workflow passes com.onesignal.sdkdemo/DL8TF3X4K3 to keep using the enterprise profiles. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drop the build-time check for VITE_ONESIGNAL_APP_ID and fall back to the default app so the demo builds without a .env. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gnal.example applicationId comes from the DEMO_BUNDLE_ID Gradle property; the e2e workflow passes com.onesignal.sdkdemo to match its google-services.json. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…le app Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sherwinski
approved these changes
Nov 23, 2026
This was referenced Nov 23, 2026
Merged
Merged
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
Capacitor 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.sdkdemois 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 required an app ID in.envbefore they would build.Scope
com.onesignal.exampleon team99SW8E36CT, Android packagecom.onesignal.example, app ID1154c350-e715-4b71-a58b-1b84b6745baa. A missingVITE_ONESIGNAL_APP_IDno longer fails the build; the default is used instead.examples/demoandexamples/demo-pods:DEMO_BUNDLE_ID/DEMO_TEAM_IDfromios/demo.xcconfig, with an optional gitignoredios/local.xcconfigoverride. Extension and app group IDs derive fromDEMO_BUNDLE_ID.-PDEMO_BUNDLE_ID(defaultcom.onesignal.example);package_nameandcustom_url_schemefollow it.e2e.ymlpassesDEMO_BUNDLE_ID=com.onesignal.sdkdemo DEMO_TEAM_ID=DL8TF3X4K3to xcodebuild and-PDEMO_BUNDLE_ID=com.onesignal.sdkdemoto Gradle, so the e2e app, profiles andgoogle-services.jsonare unchanged.demo-cap7anddemo-no-location: not built by e2e, so the new IDs and app ID are set directly.namespace,ExportOptions.plist, and the enterprise release profiles.capacitor.config.tsappIdis only used bycap add, so e2e doesn't need to override it.Follow-ups
com.onesignal.example.run-localdoesn't pass theDEMO_BUNDLE_IDoverrides yet (SDK-5811), so local e2e buildscom.onesignal.exampleuntil then.Testing
Manual testing
xcodebuild -showBuildSettingsresolves the default IDs, the e2e override and thelocal.xcconfigoverride for every target.com.onesignal.exampleby default andcom.onesignal.sdkdemowith-PDEMO_BUNDLE_ID..envinclude the default app ID;vp checkpasses in the changed demos.examples/demoagainst the default app with sdk-sharedrun-local.sh:12_activitypassed.10_event,11_locationand13_notification_clickfailed while UiAutomator2 kept stopping on a new emulator; not yet compared withmain.Affected code checklist
Checklist
Overview
Testing
Final pass
🤖 Generated with Claude Code