feat: hide in-app review prompts #35

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

Part of #16.

Feature description

Both apps ask the user to rate the app. On a patched build this makes even less sense: a Play review of a sideloaded build. Hide the prompts in both apps.

Findings

de Volkskrant (7.52.0, unobfuscated)

  • The prompt is a banner on the Sections ("Discover") screen, not in the home feed.
    • nl.persgroep.edition.feature.sections.mapper.FeaturedSectionsViewStateMapper.getReviewBannerViewData() appends FeaturedItemViewData.InAppReview.
    • It is rendered by ReviewBannerKt.ReviewBanner(...) (strings InAppReview_banner_title / _description).
  • Condition: nl.persgroep.edition.review.domain.ShouldRequestInAppReviewUseCase.invoke()Z, which is !popupSuppression.isSuppressed && configProvider.getInAppReview().enabled && repository.shouldRequestInAppReview().
    • The repository checks SharedPrefs "IN_APP_REVIEW_REQUEST_TIME": never set, or older than 182 days.
  • The Play review flow (InAppReviewRequester.request(Activity)) runs only after a positive tap on the banner. A negative score opens a Usabilla feedback form instead.

De Gelderlander (9.21.1, obfuscated)

  • t6a, the rating use case. Anchors: "app_launch_amount", "rating_modal_last_shown", "FEATURE_RATING_MODAL", "RATING_MODAL_APP_OPENS" (default "5"), "RATING_MODAL_RETRY_DAYS" (default "10").
    • g() increments the launch count. It is called from "com.kubusapp.view.MainViewModel$updateAppOpensCount$1".
    • c(Activity) launches the Play review flow directly (requestReviewFlow / launchReviewFlow) when the flag is on, there have been 5 or more launches and more than 10 days have passed.
    • It is triggered from jc7.t(Activity) in MainActivity when no region onboarding is pending.
  • There is no custom rating dialog. Usabilla has its own Play review flow, which fires only after a Usabilla form.

Approach

  • Volkskrant: ShouldRequestInAppReviewUseCase.invoke returns false.
  • Gelderlander: t6a.c(Activity) return-void, fingerprinted on the strings above. Alternatively, force FEATURE_RATING_MODAL off via #17.
  • Patch name suggestion: Hide review prompts, compatible with both apps (one patch per app with the same name, or a shared name).

Done when

  • Build passes; the patch applies on both apps.
  • Volkskrant device check (after asking): clear IN_APP_REVIEW_REQUEST_TIME on a test install; no banner appears on the Sections screen.
  • Documented in both docs/apps/*.md.

Midas Settings

  • Toggle: Verberg beoordelingsverzoeken (hide_review_prompts), category "Pop-ups en meldingen", default on.
  • Read at runtime in ShouldRequestInAppReviewUseCase.invoke (Volkskrant) and t6a.c (Gelderlander). No restart needed.
  • This is the proposed first toggle. Build the Volkskrant part together with #49 and #50 as one vertical slice.
Part of #16. ## Feature description Both apps ask the user to rate the app. On a patched build this makes even less sense: a Play review of a sideloaded build. Hide the prompts in both apps. ## Findings ### de Volkskrant (7.52.0, unobfuscated) - The prompt is a banner on the Sections ("Discover") screen, not in the home feed. - `nl.persgroep.edition.feature.sections.mapper.FeaturedSectionsViewStateMapper.getReviewBannerViewData()` appends `FeaturedItemViewData.InAppReview`. - It is rendered by `ReviewBannerKt.ReviewBanner(...)` (strings `InAppReview_banner_title` / `_description`). - Condition: `nl.persgroep.edition.review.domain.ShouldRequestInAppReviewUseCase.invoke()Z`, which is `!popupSuppression.isSuppressed && configProvider.getInAppReview().enabled && repository.shouldRequestInAppReview()`. - The repository checks SharedPrefs `"IN_APP_REVIEW_REQUEST_TIME"`: never set, or older than 182 days. - The Play review flow (`InAppReviewRequester.request(Activity)`) runs only after a positive tap on the banner. A negative score opens a Usabilla feedback form instead. ### De Gelderlander (9.21.1, obfuscated) - `t6a`, the rating use case. Anchors: "app_launch_amount", "rating_modal_last_shown", "FEATURE_RATING_MODAL", "RATING_MODAL_APP_OPENS" (default "5"), "RATING_MODAL_RETRY_DAYS" (default "10"). - `g()` increments the launch count. It is called from `"com.kubusapp.view.MainViewModel$updateAppOpensCount$1"`. - `c(Activity)` launches the Play review flow directly (`requestReviewFlow` / `launchReviewFlow`) when the flag is on, there have been 5 or more launches and more than 10 days have passed. - It is triggered from `jc7.t(Activity)` in MainActivity when no region onboarding is pending. - There is no custom rating dialog. Usabilla has its own Play review flow, which fires only after a Usabilla form. ## Approach - Volkskrant: `ShouldRequestInAppReviewUseCase.invoke` returns false. - Gelderlander: `t6a.c(Activity)` return-void, fingerprinted on the strings above. Alternatively, force `FEATURE_RATING_MODAL` off via #17. - Patch name suggestion: **Hide review prompts**, compatible with both apps (one patch per app with the same name, or a shared name). ## Done when - [ ] Build passes; the patch applies on both apps. - [ ] Volkskrant device check (after asking): clear `IN_APP_REVIEW_REQUEST_TIME` on a test install; no banner appears on the Sections screen. - [ ] Documented in both `docs/apps/*.md`. ## Midas Settings - Toggle: **Verberg beoordelingsverzoeken** (`hide_review_prompts`), category "Pop-ups en meldingen", default **on**. - Read at runtime in `ShouldRequestInAppReviewUseCase.invoke` (Volkskrant) and `t6a.c` (Gelderlander). No restart needed. - **This is the proposed first toggle.** Build the Volkskrant part together with #49 and #50 as one vertical slice.
Author
Owner

Volkskrant part done in c1b4c88 (pre-release v1.6.0-dev.1), toggle hide_review_prompts (default on). Device-tested on 7.52.0: toggle on = no 'Wat vindt u van de app?' banner in Rubrieken; toggle off + restart = banner back. Gelderlander part (t6a.c) still open.

Volkskrant part done in c1b4c88 (pre-release v1.6.0-dev.1), toggle hide_review_prompts (default on). Device-tested on 7.52.0: toggle on = no 'Wat vindt u van de app?' banner in Rubrieken; toggle off + restart = banner back. Gelderlander part (t6a.c) still open.
Author
Owner

Gelderlander part done in 883f017 (v1.6.0-dev.2): the rating use case's c(Activity) returns early while hide_review_prompts is on. Hook verified in the patched dex; not observed on the device, since the Play review flow needs 5+ launches, 10+ days and the remote flag FEATURE_RATING_MODAL.

Gelderlander part done in 883f017 (v1.6.0-dev.2): the rating use case's c(Activity) returns early while hide_review_prompts is on. Hook verified in the patched dex; not observed on the device, since the Play review flow needs 5+ launches, 10+ days and the remote flag FEATURE_RATING_MODAL.
midas closed this issue 2026-10-10 13:53:30 +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#35
No description provided.