Repository navigation
chore: [SDK-5810] default .NET demos to the shared example app - #223
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sherwinski
approved these changes
Nov 24, 2026
Incremental builds kept the previous application-identifier entitlement, so switching to the E2E bundle ID hid the app from Web Inspector. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
.NET 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 demo also failed to build without an app ID in.env. Same change as OneSignal/OneSignal-Capacitor-SDK#89, OneSignal/OneSignal-Cordova-SDK#1226 and OneSignal/OneSignal-Flutter-SDK#1207.Scope
com.onesignal.exampleon team99SW8E36CT, Android packagecom.onesignal.example, app ID1154c350-e715-4b71-a58b-1b84b6745baa. A missingONESIGNAL_APP_IDno longer fails the build.examples/demo/demo.props(imported bydemo.csprojand the NSE):DEMO_BUNDLE_IDandDEMO_TEAM_ID; MSBuild forwards-p:overrides to the NSE.group.$(DEMO_BUNDLE_ID).onesignalapp group as aCustomEntitlementsitem.ApplicationIdis$(DEMO_BUNDLE_ID)/$(DEMO_BUNDLE_ID).NSE. Removed the hardcodedCFBundleIdentifierfromInfo.plist(it overrodeApplicationId) andpackage=from the Android manifests.$(DEMO_TEAM_ID). Device builds ofcom.onesignal.sdkdemokeep the enterprise In House signing andaps-environment = production..appexis an ad hoc simulator build with IDcom.onesignal.sdkdemo.LA, and iOS won't install an extension whose ID doesn't start with the app's. A newMatchDemoWidgetBundleIdtarget bundles a copy with the ID set to$(ApplicationId).LAand re-signed ad hoc for simulator builds. It restages every build so switching IDs can't leave a stale copy. E2E device builds still replace it with thexcodebuildwidget.e2e.ymlpasses-p:DEMO_BUNDLE_ID=com.onesignal.sdkdemo(and-p:DEMO_TEAM_ID=DL8TF3X4K3on iOS).demo-no-location: usescom.onesignal.example, team99SW8E36CTand the default app ID. It isn't built by e2e, so it no longer uses the enterprise profile.OPTIONAL - Other
com.onesignal.sdkdemo.LA, since CI only uses it for the e2e device build.run-local.shneeds the matching change (SDK-5811) to passDEMO_BUNDLE_ID.com.onesignal.example.Testing
Manual testing
com.onesignal.example,.NSEand.LA. The app group entitlement isgroup.com.onesignal.example.onesignalfor the app and NSE, and the app installs. After an e2e build, switching back to the defaults rebuilds the widget correctly.dotnet msbuild -getProperty): default device builds get team99SW8E36CTwith no fixed profile. E2E device builds getDL8TF3X4K3with "Appium Demo - Main" / "Appium Demo - NSE".com.onesignal.exampleby default andcom.onesignal.sdkdemowith the override.run-local.shwith SDK-5811) installedcom.onesignal.sdkdemowith matching extensions and01_userpassed.Affected code checklist
Checklist
Overview
Testing
Final pass
🤖 Generated with Claude Code