Skip to content

fix: disable Firebase diagnostics data collection - #1053

Merged
romchornyi merged 1 commit into
developfrom
fix/disable-firebase-data-collection
Aug 31, 2026
Merged

romchornyi merged 1 commit into
developfrom
fix/disable-firebase-data-collection

Conversation

@QuantumExplorer

@QuantumExplorer QuantumExplorer commented Aug 24, 2026 •

Copy link
Copy Markdown
Member

What

Adds FirebaseDataCollectionDefaultEnabled = false to both app targets' Info.plists.

Why

This came out of a community question in the Russian Telegram group asking whether analytics/tracking are enabled in the new iOS build. The good news is there is no analytics SDK in the iOS app — no FirebaseAnalytics, no GoogleAppMeasurement, Crashlytics, Mixpanel, Amplitude, Sentry or AppsFlyer are linked, there are zero logEvent/trackEvent call sites, and there is no IDFA/ATT surface at all.

But FirebaseCoreDiagnostics is linked into both targets (it is a transitive dependency of FirebaseCore), and it starts from the unconditional [FIRApp configure] at DashWallet/AppDelegate.m:113. Up to once per day it sends Google a proto over GoogleDataTransport containing:

  • bundle identifier
  • device model
  • iOS version
  • Firebase SDK versions
  • which Firebase services are installed

FIRCoreDiagnostics.sendDiagnosticsData returns early when FirebaseDataCollectionDefaultEnabled is false:

NSNumber *isDataCollectionDefaultEnabled =
    diagnosticObjects[kFIRCDIsDataCollectionDefaultEnabledKey];
if (isDataCollectionDefaultEnabled && ![isDataCollectionDefaultEnabled boolValue]) {
  return;
}

That key was absent from both DashWallet/Info.plist and DashPay/dashpay-info.plist, so it defaulted to enabled. This PR sets it explicitly.

Scope

The flag gates Firebase's diagnostics/telemetry collection only. Firebase Storage operations — the Explore Dash merchant database download from gs://dash-wallet-firebase.appspot.com — are unaffected, as is everything else in the app.

Verification

  • plutil -lint passes on both plists.
  • plutil -extract FirebaseDataCollectionDefaultEnabled raw returns false for both.

Info.plist-only change; no source or build-setting changes.

Related

Two companion PRs address the other two outbound channels found in the same audit: the unused Firebase Dynamic Links SDK (which fingerprints the device on first launch) and a per-foreground IP geolocation lookup to ip-api.com.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Privacy
    • Firebase data collection is now disabled by default in the apps.
    • Data collection occurs only after it is explicitly enabled.
    • Updated Firebase configuration improves privacy defaults and removes legacy deep-link configuration.

@coderabbitai

coderabbitai Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 43dc09bb-c50d-4d93-b858-df32255e1f7d

📥 Commits

Reviewing files that changed from the base of the PR and between c4b8829 and 0535abf.

📒 Files selected for processing (1)
  • DashPay/dashpay-info.plist

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

Both app property lists disable default Firebase data collection. DashPay also removes its Firebase deep-link pasteboard and custom-domain settings.

Changes

Firebase collection defaults

Layer / File(s) Summary
Update app property lists
DashPay/dashpay-info.plist, DashWallet/Info.plist
Both app bundles set FirebaseDataCollectionDefaultEnabled to false. DashPay removes the previous deep-link pasteboard and custom-domain settings.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: 🔵 Low · up to 0535a

The PR disables Firebase diagnostics data collection in both app targets, reducing data sharing without changing app functionality. It is mergeable with owner awareness that the final archived bundles and SDK enforcement should be verified.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: disabling Firebase diagnostics data collection in both app targets.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/disable-firebase-data-collection

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

FirebaseCoreDiagnostics is linked into both app targets and starts from
the unconditional `[FIRApp configure]` in AppDelegate. Once a day it
sends Google a proto containing the bundle ID, device model, iOS
version, Firebase SDK versions and the list of installed Firebase
services, via GoogleDataTransport.

FIRCoreDiagnostics.sendDiagnosticsData bails out when
`FirebaseDataCollectionDefaultEnabled` is false, but the key was absent
from both Info.plists, so it defaulted to enabled. Set it explicitly.

This only gates diagnostics/telemetry collection; Firebase Storage
operations (the Explore Dash merchant database download) are unaffected.

Co-Authored-By: Claude Fable 5 <[email protected]>
@PastaPastaPasta
PastaPastaPasta force-pushed the fix/disable-firebase-data-collection branch from c4b8829 to 0535abf Compare August 29, 2026 15:23
@romchornyi
romchornyi merged commit 91ac37f into develop Aug 31, 2026
2 checks passed
@romchornyi
romchornyi deleted the fix/disable-firebase-data-collection branch August 31, 2026 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants