PWA(twa,离线)

Hello and greetings, i have tried to create Android App with Bubblerwrap:

  • is a Command Line Interface (CLI) that helps developers to create a Project for an Android application that launches an existing Progressive Web App (PWA) using a Trusted Web Activity (TWA).

Actually its pretty easy to use:

but i cant get it working, because i have to change few things in manifest.json like:
start_url
splash screen
display to fullscreen
theme color for the address bar
maskable icon

and how can i upload service worker file in my website dir in docker?
(never before worked with docker containers or discourse, still learning)

I know there is possibility to install automatically PWA app on chrome in the adress bar of the website, but the offline modus isnt working, maybe i can get it working with the service worker and some caching?

Best regards

2 个赞

Discourse is already a PWA, no need to change anything. Just install your instance following Discourse official Standard Installation and fill the new site wizard.

10 个赞

您好,
作为该领域的经验开发者,我有一个问题想请教您:
您为什么选择渐进式 Web 应用(PWA),而不是原生应用?我目前正在为自己的项目决定采用哪种方法,很想听听您的见解。

根据您的经验,与原生应用相比,PWA 的主要优缺点是什么?例如:

  • 在性能、用户体验和离线功能方面,它们如何比较?
  • PWA 是否提供了您所需的灵活性和功能,还是有一些限制需要您去克服?

您的见解将不胜感激,因为我正在努力权衡我的项目在 PWA 与原生应用 之间的优势。

有一个“原生应用”,它叫做 Discourse Hub,在两大应用商店都有提供。

如果您想为单个论坛部署原生应用(“白名单”方法),由于配置、合规、法规和平台审核等原因,这是一个相对复杂且成本高昂、耗时的工作流程,但现在完全可行。

我过去曾为几位客户做过这样的事情。

PWA 方法的优势在于用户只需点击即可免费安装,门槛非常低。

以前,通知是原生应用的巨大吸引力,但现在两大平台上的情况已大有改善。

对于习惯从应用商店获取应用的用戶来说,原生应用商店方法可以说更好,并且可以为论坛提供搜索所能带来的营销效果。

1 个赞