简体   繁体   English

从原生 Android 应用程序打开渐进式 Web 应用程序

[英]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.

相关问题 通过渐进式Web应用程序打开Android应用程序 - Open Android app from a progressive web app 可以在 Progressive Web 应用程序上进行屏幕旋转,但不能在本机 android 应用程序上进行 - Screen rotation possible on Progressive Web App but not on Native android app 渐进式Web应用程序的局限性:将本机应用程序转换为渐进式Web应用程序 - Limits of Progressive Web Apps: transforming a native app into a progressive web app 阻止Android关闭在后台播放音频的Progressive Web App - Prevent Android from closing a Progressive Web App playing audio in the background 从另一个Android应用程序调用渐进式Web应用程序 - Calling a Progressive Web App from another android application 是否可以从 Web 应用程序打开本机 android 时钟应用程序? - Is it possible to open native android clock app from web application? Android上安装的Progressive Web App的生命周期是什么? - What is the lifecycle of an installed Progressive Web App on Android? 渐进式Web应用程序:从android设备启动开始 - Progressive web app : Start at android device boot 用于Progressive Web App的Android状态栏图标 - Android Status Bar Icon for Progressive Web App 从网络打开Android应用 - Open android app from web
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM