Whitelisted Discourse app with Push Notifications via OneSignal

Could you at least say which dependency needs updating, or better yet, submit a PR with the fix?

8 curtidas

Sure, our developer at Quemuse submitted a PR:
https://github.com/pmusaraj/discourse-mobile-single-site-app/pull/20

4 curtidas

How did you get notifications to work for everyone who downloads the app?

If a user hasn’t signed up yet (which is gonna be 99% of people), they’re gonna skip the prompt, sign up, and won’t receive notifications because they didn’t login with the prompt.

Also, for people who skip the prompt and sign in through the header button, they won’t get notifications either.

Notifications only work on iOS when the person signs in through the login prompt when you first download it. Also, there is no signup link on the login prompt for me.

The app only receives notifications if the user does not skip the prompt. You could delay the prompt until later, but this hasn’t been an issue with real users.

I don’t mean the native prompt that says “Would you like X to send you notifications? Accept or Decline”. I mean the login splash screen that is displayed within the initial installation of the app.

Ah, there should be a “Connect” button. It shows up only after they have logged in, as anon there are no notifications.

1 curtida

Right, my concern is that a new person trying out the app for the first time skips the login splash screen (since they don’t have an account), after using the forum for some time, they decide to create an account. They do so, but now they won’t receive notifications because they didn’t login back when they installed the app.

Currently, we use a disclaimer text in the splash screen to help users understand.

Hi, I was able to install onesignal on my whitelabeled app but the notification are only showed when I open the app. Is there a config I am missing?

Thx!

F.

1 curtida

That seems to indicate that push notifications aren’t configured correctly. Did you build the app with the same PN certificate as what you added to the OneSignal account?

3 curtidas

All is working using the discourse plugin. I want to implement a separate push mechanism using onesignal API but I dont know where Discourse is storing Onesignal reference to the user id or the way around.

From the discourse onesignal plugin it seems that the call is made via username ( https://github.com/pmusaraj/discourse-onesignal/blob/master/plugin.rb line 46 ) but there are no tags on Onesignal.

I am curious, is OneSignal push notification still working with the latest iOS?

Obrigado @pmusaraj por desenvolver este ótimo aplicativo. Eu o testei para o meu fórum porque quero um aplicativo onde as notificações funcionem e com seu aplicativo definitivamente funciona (testado no Android)! Muito obrigado por isso. No entanto, durante os testes, encontrei três bugs.

Em um dispositivo Xiaomi, o aplicativo inicia mais abaixo. Esta faixa branca é distrativa.

:::

Em um dispositivo Samsung, quando a fonte nas configurações é ampliada, a fonte no aplicativo fica muito maior. Alguns elementos não são mais acessíveis.


:::

Por último, um bug que definitivamente precisa ser corrigido. Após sair do Discourse no aplicativo, você ainda recebe as notificações do usuário. Estava em ambos os dispositivos - Samsung e Xiaomi.

Alguém usando isso em 2024?

1 curtida

Estou querendo configurar notificações push do iOS para o Discourse (particularmente para o Chat) no meu aplicativo.

@pmusaraj - o último commit nisso foi em janeiro de 2023. Isso ainda funciona?

E para os outros neste tópico: alguém está usando isso ativamente e pode verificar se isso ainda funciona?

1 curtida

Suspeito que, como está, isso não funcione. Não tenho que usar isso para meus projetos há mais de alguns anos, e as ferramentas de compilação de aplicativos móveis (para o bem ou para o mal) mudam rapidamente, então você provavelmente terá problemas até mesmo para executar isso localmente.

1 curtida

Obrigado @pmusaraj. Assumindo que posso cuidar da parte móvel por conta própria, você acha que o plugin discourse-onesignal ainda funcionaria?

Se não, agradeceria suas opiniões sobre o melhor caminho para capturar os eventos de notificação e enviá-los para outro lugar.

Não tenho certeza. Suspeito que ele parará de funcionar em breve, pois não recebe atualizações há 2 anos e é provável que a API do OneSignal tenha mudado desde então. Sinta-se à vontade para fazer um fork e construir sobre ele!

2 curtidas