feat(gelderlander): hide notification nags (suggestions and prompts) #38

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

Part of #16.

Feature description

De Gelderlander promotes notifications in several ways:

  • a "notification suggestions" teaser in the feed;
  • a push categories component in articles;
  • its own pre-prompt dialogs;
  • a push step in onboarding.

Hide the unsolicited ones. Keep the notification settings screen and explicit follow actions working.

Findings (9.21.1, obfuscated: use the anchors)

Feed

  • NotificationSuggestionsTeaser (TeaserType pushCategories) is rendered by sx9.h(NotificationSuggestionsTeaser, sectionKey, ...).
  • It can be dropped in the feed filter (#18).

Article

  • PushCategoriesComponent maps in g20.a to i30.j0.
  • It can be dropped in the article filter (#18).

Runtime pre-prompt

  • wy9 = PushPermissionManager (anchor "com.kubusapp.push.PushPermissionManager$areNotificationsEnabledFLow$1").
  • f(Activity) shows its own AlertDialogs (k() / i(), strings notification_suggestion_permission_dialog_*) and then sets the requestPushPermission state.
  • MainActivity collects that state via jc7 mainState getRequestPushPermission() and calls MainActivity.p2(), which launches POST_NOTIFICATIONS.

Onboarding

  • com.kubusapp.onboarding.a is the flow controller. Steps: CONFIG, PRIVACY, LOGIN_SEDUCTION, LOGIN, PUSH_NOTIFICATION, REGION_SELECTION, REGIONAL_FOLLOWABLE.
  • OnBoardingPushNotificationActivity:
    • U() checks FEATURE_DISPLAY_PUSH_NOTIFICATIONS_IN_ONBOARDING;
    • V() requests the permission.
  • FollowablePushActivity is regional push. It is an explicit choice; keep it.

Approach

  • Drop NotificationSuggestionsTeaser and PushCategoriesComponent via #18.
  • Force FEATURE_DISPLAY_PUSH_NOTIFICATIONS_IN_ONBOARDING off via #17. Verify that the onboarding flow skips the step cleanly.
  • For wy9.f, find which triggers call it. Suppress only the automatic triggers, not the settings screen.

Done when

  • Build passes; patch applied on 9.21.1.
  • Device check (after asking), including a fresh-install onboarding run: no push nags; notification settings still work.
  • Documented in docs/apps/gelderlander.md.

Midas Settings

  • Toggle: Verberg meldingen-suggesties (hide_push_suggestions), category "Pop-ups en meldingen", default on. Same key as de Volkskrant.
  • Read in the filters (#18) and in the pre-prompt hook. The onboarding step goes through the flag override (#17).
  • Needs #49 and #51.
Part of #16. ## Feature description De Gelderlander promotes notifications in several ways: - a "notification suggestions" teaser in the feed; - a push categories component in articles; - its own pre-prompt dialogs; - a push step in onboarding. Hide the unsolicited ones. Keep the notification settings screen and explicit follow actions working. ## Findings (9.21.1, obfuscated: use the anchors) ### Feed - `NotificationSuggestionsTeaser` (TeaserType `pushCategories`) is rendered by `sx9.h(NotificationSuggestionsTeaser, sectionKey, ...)`. - It can be dropped in the feed filter (#18). ### Article - `PushCategoriesComponent` maps in `g20.a` to `i30.j0`. - It can be dropped in the article filter (#18). ### Runtime pre-prompt - `wy9` = PushPermissionManager (anchor `"com.kubusapp.push.PushPermissionManager$areNotificationsEnabledFLow$1"`). - `f(Activity)` shows its own AlertDialogs (`k()` / `i()`, strings `notification_suggestion_permission_dialog_*`) and then sets the requestPushPermission state. - MainActivity collects that state via `jc7` mainState `getRequestPushPermission()` and calls `MainActivity.p2()`, which launches `POST_NOTIFICATIONS`. ### Onboarding - `com.kubusapp.onboarding.a` is the flow controller. Steps: CONFIG, PRIVACY, LOGIN_SEDUCTION, LOGIN, PUSH_NOTIFICATION, REGION_SELECTION, REGIONAL_FOLLOWABLE. - `OnBoardingPushNotificationActivity`: - `U()` checks `FEATURE_DISPLAY_PUSH_NOTIFICATIONS_IN_ONBOARDING`; - `V()` requests the permission. - `FollowablePushActivity` is regional push. It is an explicit choice; keep it. ## Approach - Drop `NotificationSuggestionsTeaser` and `PushCategoriesComponent` via #18. - Force `FEATURE_DISPLAY_PUSH_NOTIFICATIONS_IN_ONBOARDING` off via #17. Verify that the onboarding flow skips the step cleanly. - For `wy9.f`, find which triggers call it. Suppress only the automatic triggers, not the settings screen. ## Done when - [ ] Build passes; patch applied on 9.21.1. - [ ] Device check (after asking), including a fresh-install onboarding run: no push nags; notification settings still work. - [ ] Documented in `docs/apps/gelderlander.md`. ## Midas Settings - Toggle: **Verberg meldingen-suggesties** (`hide_push_suggestions`), category "Pop-ups en meldingen", default **on**. Same key as de Volkskrant. - Read in the filters (#18) and in the pre-prompt hook. The onboarding step goes through the flag override (#17). - Needs #49 and #51.
midas closed this issue 2026-10-10 20:59:15 +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#38
No description provided.