feat(volkskrant): suppress onboarding, widget and coachmark popups #33
Labels
No labels
area/architecture
area/build-ci
area/bytecode
area/code-quality
area/docs
area/extension
area/fingerprint
area/security
area/tests
Bug report
Feature request
review
sev/low
sev/medium
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
midas/midas-patches#33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #16.
Feature description
de Volkskrant has a QA switch that suppresses most popups at once:
nl.persgroep.config.core.testing.PopupSuppression. Release builds bind a no-op implementation that always returns false. Use it (or the per-popup hooks below) to remove feature-onboarding dialogs, the home-screen widget prompt and similar nags.Findings (7.52.0, unobfuscated)
PopupSuppressionModule.bindPopupSuppression$foundation_configurationbindsPopupSuppressionNoOpt, whosegetIsSuppressed()Zreturns false.PopupSuppressionImplexists for test builds.isSuppressed:GetPendingOnboardingItemsUseCase: returns an empty list, so no feature-onboarding dialogs (FeatureOnboardingRepositoryImplalso checks it).WidgetDiscoveryViewModel.onPageInView: the home-screen widget discovery prompt.ShouldRequestInAppReviewUseCase: the review banner (#35).SuppressFirebaseInAppMessagingUseCase: setsareMessagesSuppressed(#34).ConsentManagerImpl.refreshConsent: skips the consent refresh, logging "Popup suppression is enabled, skipping consent refresh." This one is a problem.TestIntentHandler: test only.AddToQueueCoachmarkTrigger) and the audio page onboarding hint (InlineMessage, see #19).Consent caveat
Forcing
PopupSuppressionNoOpt.getIsSuppressed()to true also skips the consent popup. The analytics dispatcher would then never get consent: its queue grows without limit, and ads/tracking consent stay unset. So either:isSuppressedtrue and add an exception inConsentManagerImpl.refreshConsent(more fragile).Approach
GetPendingOnboardingItemsUseCase.invoke.WidgetDiscoveryViewModel.onPageInView.AddToQueueCoachmarkTriggernever fire (research the exact method).InlineMessagevia #19.Done when
docs/apps/volkskrant.md, including the PopupSuppression finding.Midas Settings
hide_onboarding_popups), category "Pop-ups en meldingen", default on.