Falco
(Falco)
2020 年 3 月 31 日午後 10:03
1
It’s been a long time coming, but finally Discourse can be used as a pwa in iOS devices.
This is now possible thanks to many changes over the years, some from Apple and lots from us.
Both meta.discourse.org and review.discourse.org have all features enabled, so please give it a go:
After that you get a nice icon for the Discourse instance on your home screen. After clicking on it you will have:
A dedicated “application” in iOS alt-tab overview
A full screen experience without the Safari UI
The ability to browse previously visited content while offline
Support for push notifications
We plan to enable this by default in the coming days. This is now enabled by default
FAQ
Why do I have to login again in the PWA?
Because the PWA instance doesn’t share cookies with main Safari on iOS
Does the PWA support push notifications?
Yes
「いいね!」 45
Very very nice
Is there something similar for Android devices?
「いいね!」 1
Falco
(Falco)
2020 年 3 月 31 日午後 10:37
3
It is available on Android for over four years now.
By using @tgxworld work, I just added more entries to get a better app feeling.
This PR makes the window standalone (no address bar), adds the header background color to the Android top bar and uses the Discourse background color on the splash screen background so the transition is smoother.
I made a small video too:
[ - YouTube]
「いいね!」 11
Thank god! Apple has been on a roll recently! I will probably be bugging anybody who has a Discourse forum.
「いいね!」 2
Falco
(Falco)
2020 年 4 月 1 日午前 12:45
5
No need to bug the admins. As said in the OP we will switch this to default if it works well.
「いいね!」 10
Falco
(Falco)
2020 年 4 月 7 日午後 11:25
6
This is now enabled by default
「いいね!」 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
Falco
(Falco)
2020 年 4 月 8 日午前 12:12
8
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
Falco
(Falco)
2020 年 5 月 5 日午後 6:20
9
iOS 13.5 fixes one annoying bug when multi-tasking into PWAs
「いいね!」 8
Someone’s written a short article about PWA’s and iOS 14:
「いいね!」 7
Don
2020 年 8 月 31 日午後 6:24
13
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
「いいね!」 1
The freezing also occurs on my iOS devices. Are there any plans to fix it?
「いいね!」 1
@Falco 動画が非公開に設定されているようです。まだお持ちですか? ありがとうございます!
「いいね!」 1
merefield
(Robert)
2023 年 8 月 11 日午前 10:06
16
Falco:
PWAはプッシュ通知をサポートしていますか?
いいえ。
これはOPで更新する必要があると思います。以下を参照してください。
[IMG_0099]
[IMG_0101]
[IMG_0102]
[1] pry(main)> PushSubscription.last
=> #<PushSubscription:0x00007fec11b781a8
id: 5164,
user_id: 8722,
data:
"{\"endpoint\":\"https://web.push.apple.com/.........\",\"keys\":{\"p256dh\":\"..................\",\"auth\":\"..............\"}}",
created_at: Thu, 16 Feb 2023 21:51:24.260325000 UTC +00:00,
updated_at: Thu, 16 Feb 2023 21:51:24.260325000 UTC +00:00,
error_count: 0,
first_error_at: nil>
Just enabled it here on Meta on my iPad, let’s see how…
「いいね!」 1
通知をサポートしていると言うのは誤解を招くでしょう。しばらく前に有効にしてから、一度も通知を受け取っていません。
Falco
(Falco)
2023 年 8 月 11 日午後 2:19
18
Robert:
OPを更新する必要があると思います。
よく気が付きました。更新しました。
プッシュ通知に関して問題なく、チームの複数のメンバーが日常的に利用しています。私のiPadでも常に機能しています。
もし最新の安定版OSバージョンを使用しており、競合するHubのインストールがない場合など、プッシュを有効にしたときに具体的に何が起こるのか、非常に詳細な手順を記載したバグトピックを開くことをお勧めします。
「いいね!」 4
現在、最新ビルドの17開発者ベータ版を使用しています。しかし、これは実際には違いを生んでいません。私が使用していたすべての16 RCビルドで、プッシュ通知はなく、ハブアプリもまだインストールされていませんでした。時間があるときにレポートを開きます。
willemb2
(Willemb2)
2024 年 2 月 9 日午後 1:00
20
そして、17.4でこれは終了します。少なくともヨーロッパでは。
「いいね!」 9