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

Skip to content
Verified Commit 5ee74ab7 authored by Fahim M. Choudhury's avatar Fahim M. Choudhury
Browse files

fix: refresh token before PlayStore app installation when a limited response is returned from GPlay

When users try to install an app from the Home, Search or Categories screens, the API calling switches from web-based to auth-based. By that time, if the token expires in the background, Google returns a limited response (version code being 0) because of the stale token, which is inadequate to install the app.

To fix this, the token is refreshed and app details are fetched again with the refreshed token. Even after refreshing, if the version code is still 0, then it's not possible to further proceed to installation from there and an exception is thrown.
parent 2c65f604
Loading
Loading
Loading
Loading