chore: [SDK-4774] add Unity no-location demo#879
Merged
Conversation
nan-li
approved these changes
Jul 1, 2026
Add a dedicated Unity demo project that exercises the location-module opt-out with no-location native dependencies, scripts, docs, and validation UI. Co-authored-by: Cursor <cursoragent@cursor.com>
Keep the stacked no-location demo branch aligned with the original SDK-4774 branch's generated Unity project metadata. Co-authored-by: Cursor <cursoragent@cursor.com>
f1ca9e9 to
1310c90
Compare
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
Adds a runnable Unity demo that validates OneSignal without the native location module.
Details
Motivation
The Unity SDK needs a dedicated example for apps that exclude the native location module, matching the no-location demos in sibling SDKs and giving reviewers/users a concrete validation path for the opt-out plumbing introduced in the parent PR.
Scope
examples/demo-no-locationwith its own scene, scripts, project settings, package manifest, and README.ONESIGNAL_DISABLE_LOCATION=truefrom the demo run scripts so CLI builds resolve granular native dependencies.link.xmlfor IL2CPP managed stripping,.env.example, app ID injection during scripted builds, and a test notification button.Testing
Unit testing
Not added; this PR is a Unity demo project and build-script addition.
Manual testing
examples/demo-no-location/run-ios.sh --no-installgenerated granular pods withoutOneSignalLocation.xcodebuildfor the no-location iOS simulator build completed withEXIT=0and noOneSignalLocation.frameworklinked.examples/demo-no-location/run-android.sh --no-installbuilt the APK with granular Android dependencies (core,notifications,in-app-messages)../run-all.sh --sdk=unity --platform=iospassed with 34 tests for the main demo path.Affected code checklist
Checklist
Overview
Testing
Final pass
Made with Cursor