I am working on publishing a progressive web app (PWA) in Google Play, as a Trusted Web Activity (TWA). I packaged my app using bubblewrap, as instructed in the official docs: https://developer.chrome.com/docs/android/trusted-web-activity/
All went smoothly. I tested the app on a handful of Android phones, among them two Huawei phones, both with gapps (google services, google play, ...): Huawei P9, and Huawei P30. On both of them, the TWA is unusable.
The behavior is as follows:
- Install the TWA app from google play
- Close all running apps
- Open the TWA app -> It is stuck on the app splash screen
- Close all running apps
- Open Chrome, then go back to home screen, and open the TWA app -> It works, but address bar is showing (it is not showing on other phone models)
Installing the PWA from Chrome browser menu works fine (as PWA, without Google Play / bubblewrap / TWA in game).
I know that Huawei phones are less common in the western world now, but I am still wondering if other developers ran into the same problem, and whether there is a way to make TWAs work on Huawei phones.