androidprogressive-web-appstrusted-web-activitytwa

Can a trusted web activity take part of the screen while the remaining screen shows the activity in background


I have a use case where I want to open a web page in TWA and come back to my app. But, I want to show the page in a TWA and occupy just the bottom part of the screen, while my remaining app is shown in the rest of the screen. Is there a way I can achieve this?


Solution

  • No. Please refer to 5th point in this Google's TWA docs.

    Transitions between web and native content are between activities. Each activity (i.e. screen) of your app is either completely provided by the web, or by an Android activity