[英]Open a Progressive Web App from a native Android app
I need to launch a Progressive Web App (PWA) from a native Android app (a custom Android launcher).我需要从原生 Android 应用程序(自定义 Android 启动器)启动一个渐进式 Web 应用程序 (PWA)。
I didn't find any documentation how PWA work in Android.我没有找到任何关于 PWA 如何在 Android 中工作的文档。
The Intent to run another native Android app is the following:运行另一个原生 Android 应用程序的意图如下:
Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.package.address");
How a PWA can be launched?如何启动 PWA?
You should look into Bubblewrap你应该看看 Bubblewrap
https://github.com/GoogleChromeLabs/bubblewrap https://github.com/GoogleChromeLabs/bubblewrap
From the link:从链接:
Bubblewrap is a set of tools and libraries designed to help developers to create, build and update projects for Android Applications that launch Progressive Web App (PWA) using Trusted Web Activity (TWA). Bubblewrap 是一组工具和库,旨在帮助开发人员为使用可信 Web 活动 (TWA) 启动渐进式 Web 应用程序 (PWA) 的 Android 应用程序创建、构建和更新项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.