feat(volkskrant): hide notification nags (push boxes and prompts) #37

Closed
opened 2026-10-10 12:23:02 +02:00 by midas · 1 comment
Owner

Part of #16.

Feature description

de Volkskrant promotes push notifications in content: a "push category box" tile in the home feed and a follow box in articles. It also asks for the notification permission in several flows. Hide the in-content push boxes. Keep explicit user actions working (the push settings screen, the podcast subscribe flow).

Findings (7.52.0, unobfuscated)

In-content push boxes

  • Feed:
    • tile type "pushCategoryBox" (SubscribableCategoriesTileDto, then PushBoxTile, then FeedPushBoxTileViewData);
    • rendered in feed/ui/view/FeedTileItemViewKt through nl.persgroep.edition.push.ui.box.composable.PushBoxViewKt.PushBoxView(...) with PushSettingsLocation.Temptation.Feed.
  • Article:
    • EditorialTopicsDto block, rendered through article/presentation/ui/editorialtopics/EditorialTopicsContentKt and PushBoxView (PushSettingsLocation.Temptation.EditorialTopics).
    • Tapping subscribe goes through SubscriptionButtonViewModel and can trigger the permission prompt.

Permission prompts

There is no automatic POST_NOTIFICATIONS prompt at app start. Requests come from:

  • Onboarding: feature/user/onboarding/push/OnboardingPushSettingsScreenKt. It calls push.ui.extension.OpenNotificationSettingsExtKt.requestPushPermission(...). The onboarding items themselves are gated by GetPendingOnboardingItemsUseCase (#33).
  • Push settings: push/ui/sections/view/PushSettingsScreenKt$PushPermissionHandler. This is an explicit user action; keep it.
  • Podcast subscribe: AudioSdkPushSubscriptionProvider calls PushPermissionRequestEmitter.request(). This is an explicit user action; keep it.
  • The app's own "go to settings" dialog: push/ui/RedirectToNotificationsSettingsDialogKt, shown via PushSettingsDelegateImpl.onCanNotShowPushPermissionSystemDialog().

Approach

  • Drop SubscribableCategoriesTileDto tiles in the feed filter (#19).
  • Drop EditorialTopics blocks in the article filter (#19). Check first whether editorial topics also act as useful topic links. If they do, consider only hiding the push box inside them.
  • Leave explicit permission flows alone.

Done when

  • Build passes; patch applied on 7.52.0.
  • Device check (after asking): no push box in the feed or articles; push settings still work.
  • Documented in docs/apps/volkskrant.md.

Midas Settings

  • Toggle: Verberg meldingen-suggesties (hide_push_suggestions), category "Pop-ups en meldingen", default on.
  • Read in the feed and article filters (#19). Applies on the next load.
  • Needs #49 and #50.
Part of #16. ## Feature description de Volkskrant promotes push notifications in content: a "push category box" tile in the home feed and a follow box in articles. It also asks for the notification permission in several flows. Hide the in-content push boxes. Keep explicit user actions working (the push settings screen, the podcast subscribe flow). ## Findings (7.52.0, unobfuscated) ### In-content push boxes - Feed: - tile type `"pushCategoryBox"` (`SubscribableCategoriesTileDto`, then `PushBoxTile`, then `FeedPushBoxTileViewData`); - rendered in `feed/ui/view/FeedTileItemViewKt` through `nl.persgroep.edition.push.ui.box.composable.PushBoxViewKt.PushBoxView(...)` with `PushSettingsLocation.Temptation.Feed`. - Article: - `EditorialTopicsDto` block, rendered through `article/presentation/ui/editorialtopics/EditorialTopicsContentKt` and `PushBoxView` (`PushSettingsLocation.Temptation.EditorialTopics`). - Tapping subscribe goes through `SubscriptionButtonViewModel` and can trigger the permission prompt. ### Permission prompts There is no automatic `POST_NOTIFICATIONS` prompt at app start. Requests come from: - Onboarding: `feature/user/onboarding/push/OnboardingPushSettingsScreenKt`. It calls `push.ui.extension.OpenNotificationSettingsExtKt.requestPushPermission(...)`. The onboarding items themselves are gated by `GetPendingOnboardingItemsUseCase` (#33). - Push settings: `push/ui/sections/view/PushSettingsScreenKt$PushPermissionHandler`. This is an explicit user action; keep it. - Podcast subscribe: `AudioSdkPushSubscriptionProvider` calls `PushPermissionRequestEmitter.request()`. This is an explicit user action; keep it. - The app's own "go to settings" dialog: `push/ui/RedirectToNotificationsSettingsDialogKt`, shown via `PushSettingsDelegateImpl.onCanNotShowPushPermissionSystemDialog()`. ## Approach - Drop `SubscribableCategoriesTileDto` tiles in the feed filter (#19). - Drop `EditorialTopics` blocks in the article filter (#19). Check first whether editorial topics also act as useful topic links. If they do, consider only hiding the push box inside them. - Leave explicit permission flows alone. ## Done when - [ ] Build passes; patch applied on 7.52.0. - [ ] Device check (after asking): no push box in the feed or articles; push settings still work. - [ ] Documented in `docs/apps/volkskrant.md`. ## Midas Settings - Toggle: **Verberg meldingen-suggesties** (`hide_push_suggestions`), category "Pop-ups en meldingen", default **on**. - Read in the feed and article filters (#19). Applies on the next load. - Needs #49 and #50.
Author
Owner

Status na device-test (7.52.0, v1.7.0-dev.1 + debug-logging):

  • Patch Hide notification suggestions is er (feed: SubscribableCategoriesTileDto, artikel: Block.EditorialTopicsBlock), via de content filters van #19.
  • De home-tab is een overview-pagina zonder push box-type; daar valt niets te verbergen.
  • Ook bij het scrollen door rubrieken kwam geen enkele feed-tile langs toModel(TileDto, ...). Het feed-deel is dus niet geverifieerd, en het is onduidelijk welk scherm de tile-feed nog gebruikt (lijst-schermen? digitale krant?).
  • Artikelfilter werkt (alle blokken passeren), maar de geteste artikelen hadden geen EditorialTopicsBlock.
  • Een drop wordt gelogd (MidasSettings: Dropped ...), dus later nachecken = logcat.

Details in docs/apps/volkskrant.md (Content filters).

Status na device-test (7.52.0, v1.7.0-dev.1 + debug-logging): - Patch **Hide notification suggestions** is er (feed: SubscribableCategoriesTileDto, artikel: Block.EditorialTopicsBlock), via de content filters van #19. - De home-tab is een overview-pagina zonder push box-type; daar valt niets te verbergen. - Ook bij het scrollen door rubrieken kwam geen enkele feed-tile langs `toModel(TileDto, ...)`. Het feed-deel is dus niet geverifieerd, en het is onduidelijk welk scherm de tile-feed nog gebruikt (lijst-schermen? digitale krant?). - Artikelfilter werkt (alle blokken passeren), maar de geteste artikelen hadden geen EditorialTopicsBlock. - Een drop wordt gelogd (`MidasSettings: Dropped ...`), dus later nachecken = logcat. Details in docs/apps/volkskrant.md (Content filters).
midas closed this issue 2026-10-10 21:00:40 +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#37
No description provided.