App lounge: Properly show PWA installation status and allow PWA to be started from App Lounge
Description
- Show proper status of PWA apps on install and after uninstall.
- Allow running PWA from App Lounge without crashing.
Issue(s)
https://gitlab.e.foundation/e/backlog/-/issues/4945
Test environment
Gradle build against 4945-pwa_broadcast branch, install the apk into the device
Test procedures
- Open App Lounge.
- Go to settings.
- Click on "Show only PWAs"
- Go to Home.
- Install any PWA.
TEST 1: Once PWA is installed, do not open from launcher. Open App Lounge again and open the PWA from the Open button. (Previously this caused a crash.)
TEST 2: Remove App Lounge from recent apps. Open App Lounge again and check if it shows the PWA as installed. (Previously this would cause App Lounge to incorrectly show "Install" instead of "Open")
CASE 3: Close App Lounge. Uninstall the PWA from launcher. Open App Lounge and check if the PWA is being shown as uninstalled i.e. "Install" button is shown instead of "Open".
Technical details
Screenshots
Check list
-
Self review -
Test procedure explained -
Tested on fresh install -
Tested applied as an update -
License -
Internal documentation -
User documentation
Edited by Sayantan Roychowdhury