feat: hide in-app review prompts #35
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#35
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
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)
nl.persgroep.edition.feature.sections.mapper.FeaturedSectionsViewStateMapper.getReviewBannerViewData()appendsFeaturedItemViewData.InAppReview.ReviewBannerKt.ReviewBanner(...)(stringsInAppReview_banner_title/_description).nl.persgroep.edition.review.domain.ShouldRequestInAppReviewUseCase.invoke()Z, which is!popupSuppression.isSuppressed && configProvider.getInAppReview().enabled && repository.shouldRequestInAppReview()."IN_APP_REVIEW_REQUEST_TIME": never set, or older than 182 days.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.jc7.t(Activity)in MainActivity when no region onboarding is pending.Approach
ShouldRequestInAppReviewUseCase.invokereturns false.t6a.c(Activity)return-void, fingerprinted on the strings above. Alternatively, forceFEATURE_RATING_MODALoff via #17.Done when
IN_APP_REVIEW_REQUEST_TIMEon a test install; no banner appears on the Sections screen.docs/apps/*.md.Midas Settings
hide_review_prompts), category "Pop-ups en meldingen", default on.ShouldRequestInAppReviewUseCase.invoke(Volkskrant) andt6a.c(Gelderlander). No restart needed.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.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.