As mentioned by @andreban, query-parameters may be used to pass info from native to the web-app.
Starting with Chrome 115, TWAs can also utilize postMessage
to communicate between the web and native app at runtime.
See the official docs here: https://developer.chrome.com/docs/android/post-message-twa