Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

prevent purchase screen trigger for restricted apps

Description

Previously, when an app was unavailable due to age verification, minimum age requirements, or geo-restrictions, the API returned a purchase needed error. This misleading error code caused App Lounge to open the purchase screen, even for free apps or apps where payment was not the issue

Screenshots

fixed vs errored

Technical details

Intercept the misleading purchase_needed error code returned by the API for free apps and correctly handle it as a restriction exception (e.g., age or geo-blocking).

Tests

manual: see the video.

Issues

closes #2807

10 commandments of code review

👪 ❤️ code review guidelines

Edited by dev-12

Merge request reports

Loading