Discourse 现在作为 iOS 的 PWA 运作

这一天终于来了,Discourse 现在可以在 iOS 设备上作为 pwa 使用了。

这得益于多年来许多方面的改进,其中一些来自 Apple,而大部分来自我们。

meta.discourse.orgreview.discourse.org 均已启用所有功能,欢迎尝试:

之后,您的主屏幕上会出现 Discourse 实例的专属图标。点击该图标后,您将拥有:

  • 在 iOS 的 Alt-Tab 概览中拥有一个独立的“应用程序”
  • 全屏体验,无需 Safari 界面
  • 离线时仍可浏览之前访问过的内容
  • 支持推送通知

我们计划在几天内默认启用此功能。 现在已默认启用 :tada:

常见问题

为什么我在 PWA 中需要重新登录?

因为 PWA 实例与 iOS 上的主 Safari 不共享 Cookie。

PWA 是否支持推送通知?

是的。

45 个赞

Very very nice :+1: :+1:

Is there something similar for Android devices?

1 个赞

It is available on Android for over four years now.

11 个赞

Thank god! Apple has been on a roll recently! I will probably be bugging anybody who has a Discourse forum.

2 个赞

No need to bug the admins. As said in the OP we will switch this to default if it works well.

10 个赞

This is now enabled by default :tada:

12 个赞

Thanks for your work on this.

If push notifications are supported by Discourse PWAs in future, this will kill off one of the prime advantages of Facebook Groups. Can’t wait for this to arrive, although it’s a technically significant undertaking so I don’t expect it any time soon.

I noticed a very minor issue with the new PWA on my instance. When clicking a link that navigates to another iPhone app eg a Twitter onebox, the “inter-app” back button shows “Untitled” as opposed to the name of my forum:

4 个赞

This would be quite simple to do on the Discourse side, as we implement the web standard. The ball is in the Apple court, as they have the only browser who doesn’t implement it while prohibiting competing browsers on their iOS devices.

That’s weird. But as we set title in both the .webmanifest and in our main document, there is nothing we can do. It’s a bug on Apple implementation.

5 个赞

iOS 13.5 fixes one annoying bug when multi-tasking into PWAs :tada:

8 个赞

Someone’s written a short article about PWA’s and iOS 14:

7 个赞

iOS in a nutshell

10 个赞

When it comes to PWAs? :sweat_smile:

4 个赞

Hello,

There is a problem with the PWA’s when multitasking. It freezes most of the time. Not just my forum but it’s repro on Meta’s PWA also. This bug appear on both platform (iOS, Android) but mostly iOS. Is that possible to fix this somehow? Thank you :slightly_smiling_face:

1 个赞

我的 iOS 设备上也会出现冻结问题。请问有修复计划吗?

1 个赞

@Falco 视频似乎已设为私有,你还有吗?:slight_smile: 谢谢!

1 个赞

我认为需要根据以下内容更新 OP:

1 个赞

说它支持通知会产生误导。自从我启用通知以来,我还没有收到过一个。

抓得好,已更新。

我们团队有多人日常使用它,在推送通知方面没有任何问题。在我的 iPad 上也一直有效。

我建议你开一个 Bug 主题,详细说明你在 iOS PWA 上的 Meta 上启用推送时具体发生了什么,如果你使用的是最新的稳定版操作系统,如果你没有冲突的 Hub 安装等。

4 个赞

目前,我使用的是最新的 17 开发者测试版。但是,这并没有真正起到作用。在我之前使用的每一个 16 RC 版本上,仍然没有推送通知,也没有安装 Hub 应用程序。等我有时间的时候,我会提交一个报告。

而在 17.4 版本中,至少在欧洲将结束这种情况。

9 个赞