【发布时间】:2019-03-05 10:43:00
【问题描述】:
我有一个 PWA,我将用户设置保存在本地存储中,我想通过 TWA 在 Play 商店中部署此 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 将用户设置保存在客户端。 如果你能给我一个例子,我将不胜感激。
【问题讨论】:
标签: local-storage progressive-web-apps trusted-web-activity