Notifiche Pushover

Plugin per l’integrazione delle notifiche Pushover.

Questo consente l’invio di notifiche tramite Pushover, che offre supporto per le notifiche push su iOS tramite un’app di terze parti.

Configurazione

Una volta installato, sarà necessario un token API dell’applicazione. Crea una nuova applicazione e compila il modulo.

Dopo aver creato l’applicazione, copia il token API risultante nelle pagine di amministrazione dei plugin di Discourse e abilita il plugin.

Tutti gli utenti potranno quindi aggiungere le proprie chiavi utente nelle loro preferenze → Notifiche.

Sarà inviata immediatamente una notifica Pushover di conferma dell’iscrizione.

18 Mi Piace

Is this for real time notification on the phone when the site is not hosted by Discourse? Or is it for other purposes?

You got it; that’s pretty much it. Desktop and Android both have notification support natively; this is a way for self-hosters to get a notifications on iOS.

4 Mi Piace

Thanks for this! Aside from the one time in-app purchase for each user, what are the pros and cons of using this vs. DiscourseHub?

1 Mi Piace

It’s probably less set up involved if users already are using Pushover (there have been a few requests for this already) - Pushover also allows you to customize which devices get notified. If you’re already in the ecosystem (as I have waded in), it gives an option for you to continue down that path.

On the downsides aside from in app purchases, this plugin isn’t going to be offered by any of DIscourse’s current hosting, so continued support here is really on my own time. You are also dependent on the discourse instance installing the plugin, whereas Hub can be used for any site, regardless of plugins.

DiscourseHub has separate concerns in addition to notifications - namely it allows you to aggregate activity of sites all in a single place. This plugin is just concerned with delivering notifications.

I built this mainly because I missed built in push notifications while moving to iOS, and had started using Pushover in other contexts (IRC, and long-running command line prompts), so it felt natural to start experimenting sending Discourse notifications to Pushover as well.

10 Mi Piace

Questo plugin è ancora attivo? L’ho installato e ho aggiunto la chiave API di Pushover, ma non riesco a trovare alcun campo in /u/waffleslop/preferences/notifications per inserire la chiave utente.

Discourse 2.7.0.beta5

Sono ancora qui! :wave: Ultimamente mi sono dedicato più ai lavori dietro le quinte. Non mi occupo di questo plugin da un po’, ma vediamo cosa riesco a scoprire.

2 Mi Piace

@waffleslop Posso confermare che questo plugin funziona ancora. Hai attivato il plugin e salvato la tua chiave API dell’applicazione?

Non apparirà a meno che il plugin non sia attivato. Un utente dovrà aggiornare la pagina per vederlo dopo averlo fatto.

Screenshot del 2021-04-17 20-18-10

Dopo di ciò, vedrai quanto segue nei messaggi:

1 Mi Piace

Il plugin funziona per me. Tutto a posto.

Ciao @featheredtoast, è possibile che un recente aggiornamento di discourse abbia rotto il plugin? :confused:

Pochi giorni dopo l’aggiornamento a 2.9.0.beta1, ho ricevuto questo messaggio da Pushover che diceva che il mio plugin discourse stava effettuando troppe richieste non valide alla loro API

Questo è successo nonostante il mio volume di notifiche molto basso. Non sono nemmeno vicino alla loro quota.

Hmm, non c’è nulla di cui sia a conoscenza che possa causare un’interruzione dal lato Discourse, ma posso dare un’occhiata.

3 Mi Piace

Questo plugin sta generando un avviso di deprecazione:

L'uso di Ember Global è deprecato. Dovresti importare il modulo Ember o l'API specifica invece.

C’è in programma un aggiornamento del plugin? Da quanto vedo, non c’è stata attività qui da parecchio tempo.

1 Mi Piace

Mi sarebbe piaciuto usarlo anche questo. Ma purtroppo posso confermare che al momento l’utilizzo di questo plugin causa un errore nella console ReferenceError: Ember is not defined

Puoi provare questo fork per ora:

url: https://github.com/Arkshine/discourse-pushover-notifications
branch: fix-deprecation

Farò una PR adeguata più tardi. :+1:

4 Mi Piace

Confermo che la tua versione corretta funziona da parte mia!
Grazie :folded_hands:

1 Mi Piace

Sembra che David mi abbia battuto su questo, grazie! :smile:

2 Mi Piace

Mi dispiace @Arkshine - stavo lavorando a un report sullo stesso problema qui su Site broken due to ember 5 upgrade - #12 by david.

Secondo me vale ancora la pena pubblicare il tuo PR, e poi chiuderò il mio. Sembra che il tuo faccia un po’ più di pulizia e corregga anche una deprecazione lato server :chefs_kiss:

1 Mi Piace

Nessun problema @david :smile:. Volevo dividerlo in più PR, ma probabilmente qui non fa molta differenza.
Ho creato il PR :+1:

4 Mi Piace

Mi scuso per non aver mantenuto aggiornato questo plugin ultimamente - grazie per le modifiche @Arkshine - molto apprezzato :heart:

3 Mi Piace

Ho creato una piccola PR per correggere la traduzione mancante quando arriva un messaggio di chat.

fix the missing translation when a Chat message arrives. Keep it compact! · Pull Request #5 · featheredtoast/discourse-pushover-notifications (github.com)

2 Mi Piace