简体   繁体   English

渐进式Web应用程序:从android设备启动开始

[英]Progressive web app : Start at android device boot

At work, we are switching from native app to progressive web app. 在工作中,我们正在从本机应用程序切换到渐进式Web应用程序。 The last feature that we got before and not with the PWA is that before our application opened automatically at startup of device. 我们之前(而不是PWA)获得的最后一个功能是在设备启动时自动打开应用程序之前。

It seems that it not possible (am i wrong ?) with PWA. 似乎PWA是不可能的(我错了吗?)。 We are looking to installing an android native application that could launch PWA at startup. 我们正在寻求安装可以在启动时启动PWA的android本机应用程序。 But it seems that we need PWA package name or other to launch application. 但是似乎我们需要PWA软件包名称或其他名称才能启动应用程序。

Did you know if PWA have a package name or other ? 您知道PWA是否具有软件包名称或其他名称吗? Or maybe if we speak more generally, did you think if it's possible ? 或者,也许如果我们说的更笼统,您是否认为有可能?

You need native code here to help start your PWA as your PWA itself cant listen for ACTION_BOOT_COMPLETED , which is needed for you to trigger your app on boot-up. 您需要此处的本地代码来帮助启动PWA,因为PWA本身无法监听ACTION_BOOT_COMPLETED ,这是启动时触发应用程序所必需的。 You can create BroadcastReceiver and once you receive ACTION_BOOT_COMPLETED , use Android Intent Filters of your PWA to deep link from your Native code. 您可以创建BroadcastReceiver ,一旦收到ACTION_BOOT_COMPLETED ,请使用PWA的Android Intent过滤器从本机代码进行深层链接。

If you are thinking of distributing your PWA to non enterprise environment, where installing your Native code is not controlled and guaranteed, I do not see any other way to call your PWA on boot. 如果您打算将PWA分发到非企业环境中,在该环境中无法控制和保证安装本机代码,那么我看不到任何其他在启动时调用PWA的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 通过渐进式Web应用程序打开Android应用程序 - Open Android app from a progressive web app Android上安装的Progressive Web App的生命周期是什么? - What is the lifecycle of an installed Progressive Web App on Android? 用于Progressive Web App的Android状态栏图标 - Android Status Bar Icon for Progressive Web App Android 如何在设备启动时使用复选框启用/禁用启动应用程序? - Android How to use checkbox for enable/disable start app on device boot? 从原生 Android 应用程序打开渐进式 Web 应用程序 - Open a Progressive Web App from a native Android app 可以在 Progressive Web 应用程序上进行屏幕旋转,但不能在本机 android 应用程序上进行 - Screen rotation possible on Progressive Web App but not on Native android app 为iOS和Android服务不同的Progressive Web App UI - Serve a different Progressive Web App UI for iOS and Android 阻止Android关闭在后台播放音频的Progressive Web App - Prevent Android from closing a Progressive Web App playing audio in the background 渐进式 Web 应用程序上的 Android 后退按钮关闭应用程序 - Android Back Button on a Progressive Web Application closes de App 使用渐进式Web应用程序时,Android软菜单重叠 - Android soft menu overlapped when using a progressive web app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM