O Discourse agora funciona como um PWA no iOS

Já era esperado há muito tempo, mas finalmente o Discourse pode ser usado como um pwa em dispositivos iOS.

Isso agora é possível graças a muitas mudanças ao longo dos anos, algumas da Apple e muitas da nossa equipe.

Tanto o meta.discourse.org quanto o review.discourse.org têm todos os recursos ativados, então experimentem:

Depois disso, você terá um ícone agradável da instância do Discourse na sua tela inicial. Ao clicar nele, você terá:

  • Um “aplicativo” dedicado na visão geral de alternância de apps (alt-tab) do iOS
  • Uma experiência em tela cheia sem a interface do Safari
  • A capacidade de navegar por conteúdo visitado anteriormente enquanto estiver offline
  • Suporte para notificações push

Planejamos ativar isso por padrão nos próximos dias. Isso já está ativado por padrão :tada:

FAQ

Por que preciso fazer login novamente no PWA?

Porque a instância do PWA não compartilha cookies com o Safari principal no iOS

O PWA suporta notificações push?

Sim

45 curtidas

Very very nice :+1: :+1:

Is there something similar for Android devices?

1 curtida

It is available on Android for over four years now.

11 curtidas

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

2 curtidas

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

10 curtidas

This is now enabled by default :tada:

12 curtidas

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 curtidas

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 curtidas

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

8 curtidas

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

7 curtidas

iOS in a nutshell

10 curtidas

When it comes to PWAs? :sweat_smile:

4 curtidas

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 curtida

The freezing also occurs on my iOS devices. Are there any plans to fix it?

1 curtida

@Falco seems the video is set to private, do you still have it? :slight_smile: obrigado!

image

1 curtida

Acho que isso precisa ser atualizado no OP conforme:

1 curtida

Seria enganoso dizer que ele suporta notificações. Não recebi uma única notificação desde que as ativei há algum tempo.

Boa observação, atualizado.

Temos várias pessoas na equipe usando diariamente sem problemas em relação às notificações push. Sempre funciona no meu iPad também.

Sugiro abrir um tópico de bug com passos muito detalhados sobre o que exatamente está acontecendo quando você ativa o push aqui no Meta em seu PWA iOS, se você está na versão estável mais recente do sistema operacional, se você não tem uma instalação conflitante do Hub, etc.

4 curtidas

Atualmente, estou na versão beta de desenvolvedor 17, a compilação mais recente. No entanto, isso não está fazendo muita diferença. Em todas as compilações 16 RC em que estive, ainda não havia notificação push e também nenhum aplicativo do hub ainda instalado. Abrirei um relatório quando tiver tempo.

E com a 17.4 isso acabará, pelo menos na Europa.

9 curtidas