Pushover通知

Pushover 通知を統合するためのプラグインです。

これにより、サードパーティ製アプリを通じて iOS 向けのプッシュ通知サポートを含む Pushover 経由で通知を送信できます。

設定

インストール後、アプリケーション API トークンが必要です。新しいアプリケーションを作成 し、フォームに入力してください。

アプリケーションを作成したら、生成された API トークンを Discourse の管理プラグインページにコピーし、プラグインを有効にします。

その後、すべてのユーザーが「設定」→「通知」で自分のユーザーキーを追加できるようになります。

サブスクリプションを確認する即時の Pushover メッセージが表示されます。

「いいね!」 18

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

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

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

このプラグインは現在もアクティブですか?インストールし、Pushover の API キーを追加しましたが、/u/waffleslop/preferences/notifications にユーザーキーを追加する場所が見つかりません。

Discourse 2.7.0.beta5

まだいますよ!:wave: 最近は裏方で活動しています。このプラグインをじっくり見たのはだいぶ前ですが、調べてみましょう。

「いいね!」 2

@waffleslop このプラグインは現在も機能することを確認しました。プラグインを有効にし、アプリケーションの API キーを保存しましたか?

プラグインが有効になっていない限り、表示されません。有効にした後、表示されるにはユーザーがページを再読み込みする必要があります。

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

その後、メッセージに以下が表示されます。

「いいね!」 1

プラグインは私でも機能しています。すべて問題ありません。

Hi @featheredtoast 様、最近のDiscourseのアップデートでプラグインが壊れた可能性はありますか?:confused:

2.9.0.beta1にアップグレードしてから数日後、Pushoverから、DiscourseプラグインがAPIに対して無効なリクエストを送信しすぎているというメッセージを受け取りました。

通知の量が非常に少ないにもかかわらず、これは発生しました。彼らのクォータにはほど遠いです。

うーん、Discourse側でこれが壊れる原因となるようなことは何も思い当たらないのですが、確認してみます。

「いいね!」 3

このプラグインで非推奨の警告が表示されています。

Ember グローバルの使用は非推奨です。代わりに Ember モジュールまたは特定の API をインポートする必要があります。

プラグインを更新する予定はありますか?見たところ、しばらくの間アクティビティがありませんでした。

「いいね!」 1

これも使いたかったのですが、残念ながら現時点では、このプラグインを使用すると ReferenceError: Ember is not defined というコンソールエラーが発生することを確認しました。

とりあえず、このフォークを試してみてください。

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

後で正式なPRを作成します。:+1:

「いいね!」 4

修正版がこちらで動作することを確認しました!
ありがとうございます :folded_hands:

「いいね!」 1

デビッドに負けたようです。ありがとうございます!:smile:

「いいね!」 2

申し訳ありません、@Arkshine様。私も Site broken due to ember 5 upgrade - #12 by david で同じ問題のレポートを作成していました。

私の意見では、あなたのPRを投稿する価値はまだあります。その後、私のPRは閉じます。あなたのPRは、さらに整理され、サーバー側の非推奨も修正されているようです :chefs_kiss:

「いいね!」 1

問題ありません、@david :smile:。複数のPRに分割したかったのですが、ここではそれほど重要ではないかもしれません。
PRを作成しました :+1:

「いいね!」 4

最近このプラグインのメンテナンスを怠っていて申し訳ありません。@Arkshine、変更ありがとうございます。大変感謝しています :heart:

「いいね!」 3

チャットメッセージが到着したときに翻訳が欠落していたのを修正する小さなPRを作成しました。

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

「いいね!」 2