Repository navigation
chore: [SDK-5690] enable Firebase Installation IDs in demo app - #1201
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
abdulraqeeb33
approved these changes
Nov 10, 2026
abdulraqeeb33
left a comment
Contributor
There was a problem hiding this comment.
The Installation ID flag, the missing-json failure, and firebase-messaging 25.1.3 match the Android and Capacitor demos. android:value="true" compiles as a boolean, which is what OneSignal reads.
Two nits on the README order and the new StateError lines.
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.
One Line Summary
Enable Firebase Installation ID registration for the Flutter demo's Android E2E build and move Android examples to
com.onesignal.sdkdemo.Motivation
SDK-5690. Same approach as OneSignal/OneSignal-Android-SDK#2836 and OneSignal/OneSignal-Capacitor-SDK#81.
Scope
examples/demoAndroid:firebase_messaging_installation_id_enabledmanifest flag comes from-PFIREBASE_INSTALLATION_ID_ENABLED(flutter build apk -P...). It is off by default, and the build fails if it is on withoutgoogle-services.json.google-services.jsonexists. The file is gitignored.firebase-messagingis pinned to 25.1.3, the version Installation ID registration needs.google-services.jsonfromAPPIUM_GOOGLE_SERVICES_JSONwith the sdk-sharedsetup-google-servicesaction.bundle-id: com.onesignal.sdkdemo.demoanddemo-pods.main.dartthrows at startup whenONESIGNAL_APP_IDis empty, andcreate-demo-envfails CI when it is empty. Flutter has no build-time hook for this check.com.onesignal.sdkdemo. iOS stayscom.onesignal.example. Onlydemogets the Firebase Installation ID and E2E changes.sdkdemopackage and turns the flag on whengoogle-services.jsonexists.Testing
demodebug builds give the expected merged-manifest values for each case:google-services.json:false.google-services.json: the build fails with the expected message.google-services.json:true.google-services.json:false.com.onesignal.sdkdemo, and it resolvesfirebase-messaging25.1.3.flutter analyzeondemoanddemo-podsshows only the one existing info on main.Affected code checklist
Checklist
google-services.jsonstays gitignored🤖 Generated with Claude Code