feat: disable Firebase In-App Messaging campaigns #34

Closed
opened 2026-10-10 12:22:55 +02:00 by midas · 0 comments
Owner

Part of #16.

Feature description

Both apps include Firebase In-App Messaging (FIAM). The marketing team can push popup and banner campaigns through it from the Firebase console, without an app update. Suppress them.

Findings

  • de Volkskrant (7.52.0): nl.persgroep.edition.domain.messaging.SuppressFirebaseInAppMessagingUseCase sets areMessagesSuppressed based on PopupSuppression (see #33).
  • De Gelderlander (9.21.1): g9d.f (TrackingStarter) calls FirebaseInAppMessaging.setMessagesSuppressed(!FEATURE_FIREBASE_IN_APP_MESSAGING). The flag's static default is "enabled", so campaigns are on.

Approach

  • Shared and simplest: hook the unobfuscated Firebase SDK method com.google.firebase.inappmessaging.FirebaseInAppMessaging.setMessagesSuppressed(Boolean) and force the argument to true.
    • Also make sure suppression is set at startup even if the app never calls it. Alternatively, patch FirebaseInAppMessaging's display path, or disable it via the manifest (firebase_inapp_messaging_auto_data_collection_enabled), and check what that actually stops.
  • Gelderlander alternative: force FEATURE_FIREBASE_IN_APP_MESSAGING off through #17.

Done when

  • Build passes; the patch applies on both apps.
  • Verification: logcat on start shows FIAM suppressed, or there are no firebaseinappmessaging.googleapis.com fetches.
  • Documented in both docs/apps/*.md.

Midas Settings

  • Toggle: Verberg promotiepop-ups (hide_inapp_messages), category "Pop-ups en meldingen", default on.
  • Suppression is set at startup, so this requires a restart, unless the hook checks the toggle on every display.
  • Needs #49 and the entry point for each app (#50, #51).
Part of #16. ## Feature description Both apps include Firebase In-App Messaging (FIAM). The marketing team can push popup and banner campaigns through it from the Firebase console, without an app update. Suppress them. ## Findings - de Volkskrant (7.52.0): `nl.persgroep.edition.domain.messaging.SuppressFirebaseInAppMessagingUseCase` sets `areMessagesSuppressed` based on PopupSuppression (see #33). - De Gelderlander (9.21.1): `g9d.f` (TrackingStarter) calls `FirebaseInAppMessaging.setMessagesSuppressed(!FEATURE_FIREBASE_IN_APP_MESSAGING)`. The flag's static default is "enabled", so campaigns are on. ## Approach - Shared and simplest: hook the unobfuscated Firebase SDK method `com.google.firebase.inappmessaging.FirebaseInAppMessaging.setMessagesSuppressed(Boolean)` and force the argument to true. - Also make sure suppression is set at startup even if the app never calls it. Alternatively, patch `FirebaseInAppMessaging`'s display path, or disable it via the manifest (`firebase_inapp_messaging_auto_data_collection_enabled`), and check what that actually stops. - Gelderlander alternative: force `FEATURE_FIREBASE_IN_APP_MESSAGING` off through #17. ## Done when - [ ] Build passes; the patch applies on both apps. - [ ] Verification: logcat on start shows FIAM suppressed, or there are no `firebaseinappmessaging.googleapis.com` fetches. - [ ] Documented in both `docs/apps/*.md`. ## Midas Settings - Toggle: **Verberg promotiepop-ups** (`hide_inapp_messages`), category "Pop-ups en meldingen", default **on**. - Suppression is set at startup, so this requires a restart, unless the hook checks the toggle on every display. - Needs #49 and the entry point for each app (#50, #51).
midas closed this issue 2026-10-10 20:59:13 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
midas/midas-patches#34
No description provided.