telemetry-consent-v1) and
the time. Changing the prompt or Settings wording bumps the version, which voids
stored answers and asks again; nothing is collected in between. An answer stored
by an older build (including the earlier regional-default key) is never trusted:
those users see the prompt once on the first launch after the update, with no
collection until they answer. The FID clarification keeps the legal notice at
telemetry-consent-v1. A separate telemetry-consent-copy-version value,
telemetry-fid-copy-v1, re-prompts Allows from earlier unreleased dev/QA screens
once; there was no distributed Allow screen requiring a production re-prompt.
The EN/VI FID sentence is maintained in telemetryFirebaseInstallationDisclosure,
shared by the prompt and Settings. The prompt explicitly names Google Firebase
Analytics and Crashlytics and links the privacy policy at /privacy for English
or /vi/privacy for Vietnamese, selected by the app locale.
First-run prompt
Production builds show a one-time, full-screen prompt (route/telemetry-consent, above the shell) once a signed-in user has a workspace and
the device has no stored answer for the current notice version. Allow and
Don’t allow share one size and style, in that order, nothing is preselected,
and Privacy details opens the public privacy notice. Closing the prompt with
the back gesture counts as Don’t allow, never as consent. An answer persists
exactly like the Settings switch (declining revokes before persisting) and the
prompt is not shown again until the notice version changes. Settings stays the
place to change the choice, and choosing there first also ends the prompt.
Settings routes are never interrupted, and a deep link is restored after the
answer. Development and staging builds default to no prompt and no collection; the QA override below is the only exception.
Advertising identifiers
No advertising identifier (Android AD_ID, iOS IDFA) is collected. Android removes the mergedcom.google.android.gms.permission.AD_ID and
android.permission.ACCESS_ADSERVICES_AD_ID permissions and sets
google_analytics_adid_collection_enabled to false. The app excludes the transitive play-services-ads-identifier module from all app configurations. iOS sets
GOOGLE_ANALYTICS_ADID_COLLECTION_ENABLED to NO and links Firebase Analytics
without ad-ID support ($FirebaseAnalyticsWithoutAdIdSupport in the Podfile, so
the GoogleAppMeasurement/IdentitySupport subspec and AdSupport are not
linked). The native-config test guards these settings.
Firebase startup and push
On both iOS and Android, Firebase/Installations admission requires a signed-in session and either (a) push ON with OS authorization or (b) a current explicit telemetry Allow. Deny plus push OFF never configures Firebase or creates an FID. Consented Analytics and Crashlytics also use a Firebase Installation ID when push is OFF; Messaging stays dormant until push is admitted. The app does not send account details to Google with the telemetry FID. For push, it links the push token to the authenticated account to deliver notifications. The push setting disclosure states that distinction explicitly. A serialized admission controller runs the same policy for both platforms. When neither purpose remains, it disables telemetry, drains push token/server unregistration successfully, then invokes Installations.delete() at most once per transition. The durable firebase-installation-deletion-state-v1 ledger is claimed as attempted before invoking the SDK and marked deleted on success. Failure is logged without identifiers and never retried by the app, including after restart. If cleanup fails first, the SDK delete is skipped. Only a new signed-in purpose admission opens a new cleanup budget; reapplying Deny plus push OFF does not. Sign-out uses the same order before credentials are removed. Token/FID deletion may itself contact Firebase as cleanup; it does not authorize a new installation or token. Native process-start resets remain unconditional even with a stored Allow. The exception permits one app-level delete() invocation, with one HTTP DELETE on a successful network path. The SDK may retry only that same DELETE:- Android Firebase Installations 19.1.2: deleteFirebaseInstallationId reads
existing persisted state and its refresh credential, and calls the delete
transport only for a registered FID. It never calls getId/getToken or the
registration/refresh path. The transport uses
MAX_RETRIES=1with a<=loop: at most two HTTP attempts, on IOException, HTTP 429 or 5xx. See delete entrypoint and DELETE transport. These bounds were also checked against the installed 19.1.2 AAR bytecode. - iOS Firebase Installations 12.18.0: createDeleteInstallationPromise waits for any existing operation or reads stored state; it does not create one. sendDeleteInstallationRequestIfNeeded sends only for a registered FID, using the stored refresh credential. sendURLRequest uses attempts:1 and delay:1, retrying HTTP 500 once: at most two HTTP attempts. The Promise counter is a retry budget, not the total attempt count. See delete controller, request/retry implementation, and Promise retry counter.
ACCESS_ADSERVICES_ATTRIBUTION permission: the
app does no ad measurement, so Privacy Sandbox attribution reporting stays
unused.
iOS privacy manifest
ios/Runner/PrivacyInfo.xcprivacy declares, as unlinked and not used for
tracking, the data Firebase Analytics, Crashlytics and installation IDs may
collect (device ID, product interaction, coarse location and diagnostics) and
the UserDefaults required-reason API (CA92.1, the consent and Crashlytics
gates read the app’s own defaults). Purchase history and user ID are not
declared: the app has no StoreKit purchases and never calls setUserId. The
manifest states what the app may collect; the consent gate decides whether it
does. The text is a draft that is not lawyer-reviewed; reconcile it with an Xcode
Privacy Report from the CI archive and the App Store Connect labels before
release.
Regression coverage: telemetry_consent_page_test.dart covers prompt
eligibility, no collection before Allow, redirect and both answers;
telemetry_preference_test.dart covers no collection in any locale, stored
version and time, version changes, legacy values, startup ordering, consent
reloads and the native gates; auth_cubit_consent_hook_test.dart covers the
reload on every session transition; TelemetryConsentDecisionTest (Android
unit test) covers the native decision; telemetry_settings_tile_test.dart covers
label and switch activation; mobile_observability_test.dart covers deletion of
unsent reports at startup and on opt-out. The preference suite checks native
defaults, duplicate keys and native gate ordering.
Validation uses flutter gen-l10n, flutter analyze, focused flutter test and
bun check:changed on an admitted Flutter host. No release build is required.
QA with development Firebase
Use a development-flavor debug build to exercise the production consent flow without sending QA telemetry to production Firebase:-FIRAnalyticsDebugEnabled in the development Xcode scheme. For Android use
adb shell setprop debug.firebase.analytics.app <development-application-id>;
reset with adb shell setprop debug.firebase.analytics.app .none..
Enable Crashlytics debug logs with -FIRDebugEnabled on iOS or
adb shell setprop log.tag.FirebaseCrashlytics DEBUG on Android.
Use disposable simulator/emulator data. Capture network traffic from process
start, through fresh Deny and relaunch, then Allow as a positive control.
Repeat an upgrade preserving earlier persisted Firebase-enable overrides with
missing, denied and stale-version consent. Before Allow, expect zero Analytics
and Crashlytics requests; use a proxy alongside debug logs, since logs alone
cannot prove zero requests. Run the focused observability suite both normally
and with flutter test --dart-define=CONSENT_GATE_QA=true; the
consent_gate_qa_test.dart regression covers release exclusion and development
Firebase identity on both mobile platforms.
Development iOS/macOS flavor plists and Android’s
android/app/src/development/google-services.json are committed public Firebase
client configuration. PR builds receive no Firebase CI secret. Dart development
options and native resources use tuturuuu-mobile-dev. Earlier development
builds targeted tuturuuu-mobile for analytics and crash data; this corrects
development only. Staging still targets production and is tracked separately.
No development web/Windows registrations exist, so those targets fail explicitly.
The supplied dev Firebase registration has no Google OAuth client; Google sign-in
requires separate OAuth provisioning before it can be accepted on this flavor.
For Android Analytics logs, use adb shell setprop log.tag.FA VERBOSE and
adb shell setprop log.tag.FA-SVC VERBOSE. Release QA re-runs iOS and Android device
checks; unit tests do not establish device network acceptance.