feat(volkskrant): hide notification nags (push boxes and prompts) #37
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#37
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 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
"pushCategoryBox"(SubscribableCategoriesTileDto, thenPushBoxTile, thenFeedPushBoxTileViewData);feed/ui/view/FeedTileItemViewKtthroughnl.persgroep.edition.push.ui.box.composable.PushBoxViewKt.PushBoxView(...)withPushSettingsLocation.Temptation.Feed.EditorialTopicsDtoblock, rendered througharticle/presentation/ui/editorialtopics/EditorialTopicsContentKtandPushBoxView(PushSettingsLocation.Temptation.EditorialTopics).SubscriptionButtonViewModeland can trigger the permission prompt.Permission prompts
There is no automatic
POST_NOTIFICATIONSprompt at app start. Requests come from:feature/user/onboarding/push/OnboardingPushSettingsScreenKt. It callspush.ui.extension.OpenNotificationSettingsExtKt.requestPushPermission(...). The onboarding items themselves are gated byGetPendingOnboardingItemsUseCase(#33).push/ui/sections/view/PushSettingsScreenKt$PushPermissionHandler. This is an explicit user action; keep it.AudioSdkPushSubscriptionProvidercallsPushPermissionRequestEmitter.request(). This is an explicit user action; keep it.push/ui/RedirectToNotificationsSettingsDialogKt, shown viaPushSettingsDelegateImpl.onCanNotShowPushPermissionSystemDialog().Approach
SubscribableCategoriesTileDtotiles in the feed filter (#19).EditorialTopicsblocks 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.Done when
docs/apps/volkskrant.md.Midas Settings
hide_push_suggestions), category "Pop-ups en meldingen", default on.Status na device-test (7.52.0, v1.7.0-dev.1 + debug-logging):
toModel(TileDto, ...). Het feed-deel is dus niet geverifieerd, en het is onduidelijk welk scherm de tile-feed nog gebruikt (lijst-schermen? digitale krant?).MidasSettings: Dropped ...), dus later nachecken = logcat.Details in docs/apps/volkskrant.md (Content filters).