我有一个 PWA,我将用户设置保存在本地存储中,我想通过 TWA 在 Play Store 上部署这个 PWA。问题如下:
The host app doesn't have direct access to web content in a Trusted Web
activity or any other kind of web state, like cookies and localStorage.
Nevertheless, you can coordinate with the web content by passing data to and
from the page in URLs (e.g. through query parameters, custom HTTP headers, and
intent URIs.)
根据谷歌所说,我不明白如何在 PWA 上使用 TWA 将用户设置保存在客户端。如果你能给我一个例子,我将不胜感激。