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 Mi Piace

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

4 Mi Piace

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 Mi Piace

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 Mi Piace

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 Mi Piace

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?

Grazie @pmusaraj per aver sviluppato questa fantastica app. L’ho provata per il mio forum perché voglio un’app in cui le notifiche funzionino e con la tua app funziona decisamente (testata su Android)! Grazie mille per questo. Tuttavia, durante il test ho riscontrato tre bug.

Su un dispositivo Xiaomi, l’app si avvia più in basso. Questa striscia bianca è fastidiosa.

:::

Su un dispositivo Samsung, quando il carattere nelle impostazioni viene ingrandito, il carattere nell’app diventa molto più grande. Alcuni elementi non sono più accessibili.


:::

Infine, un bug che deve assolutamente essere corretto. Dopo essersi disconnessi da Discourse nell’app, si continuano a ricevere le notifiche utente. È successo su entrambi i dispositivi: Samsung e Xiaomi.

Qualcuno lo sta usando nel 2024?

1 Mi Piace

Sto cercando di configurare le notifiche push iOS per Discourse (in particolare per Chat) nella mia app.

@pmusaraj - l’ultimo commit su questo è stato nel gennaio 2023. Funziona ancora?

E poi agli altri in questo thread: qualcuno lo sta usando attivamente ed è in grado di verificare che funzioni ancora?

1 Mi Piace

Sospetto che così com’è, questo non funzioni. Non ho dovuto usarlo per i miei progetti da diversi anni e gli strumenti di compilazione delle app mobili (nel bene o nel male) cambiano rapidamente, quindi probabilmente avrai difficoltà anche solo a eseguirlo localmente.

1 Mi Piace

Grazie @pmusaraj. Supponendo che io possa occuparmi della parte mobile da parte mia, pensi che il plugin discourse-onesigna funzionerebbe ancora?

In caso contrario, apprezzerei i tuoi pensieri sul miglior percorso per raccogliere gli eventi di notifica e inviarli da qualche parte.

Non sono sicuro. Sospetto che smetterà presto di funzionare, perché non ha avuto aggiornamenti per 2 anni e ci sono buone probabilità che l’API OneSignal sia cambiata da allora. Sei il benvenuto a fare un fork e a costruirci sopra, però!

2 Mi Piace