È possibile visualizzare le notifiche di Discourse su un altro sito?

My site spans a few platforms.

I know users can have live browser notifications, and emails.

I’d also like to pull the notifications bubble that appears on discourse user profile and add it to the menu on my other platforms, for continuity.

Just that they have a notification, and ideally how many. Has anyone heard of that being done?

3 Mi Piace

Yeah, this is totally doable.

I did back in 2015 using a direct database connection on the Discourse and querying the notifications table.

You can also use the API.

It’s just a matter of picking what’s best for the underlying tech of the other site.

6 Mi Piace

Abbiamo implementato questa soluzione e riusciamo a estrarre senza problemi il conteggio delle notifiche non lette da Discourse verso il nostro altro sito.
Il problema che stiamo riscontrando è che ora i numeri mostrati nelle bolle non coincidono tra l’altro sito e Discourse.
Per le bolle blu (notifiche), una volta che un utente apre il menu a tendina in Discourse, il contatore viene resettato a 0, anche se non apre effettivamente le notifiche.
Sul nostro altro sito, invece, le notifiche continuano a essere conteggiate come non lette. Quindi potrebbe ancora visualizzare X notifiche non lette sull’altro sito, mentre in Discourse il contatore è già stato resettato a 0.

Questo crea molta confusione per gli utenti. Esiste un modo per estrarre non il numero totale di notifiche non lette, bensì il numero visualizzato nella bolla blu di Discourse (che viene impostato a 0 quando un utente apre il menu a tendina delle notifiche)?