Pushover notifications

Plugin for integrating Pushover notifications.

This allows notifications to be sent over Pushover, which grants push-notification support for iOS, through the 3rd party app.

Configuration

Once installed, you will need an Application API token. Create a New Application and fill out the form.

After you created the application, copy the resulting API token to the Discourse admin plugin pages, and enable the plugin.

All users will then be able to add their User keys in their preference → Notifications.

There will be an immediate pushover message confirming the subscription.

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 个赞

Is this still an active plugin? I have it installed, added the API key from Pushover, though I cannot see any place in /u/waffleslop/preferences/notifications to add a user key.

Discourse 2.7.0.beta5

I’m still around! :wave: Just been more behind-the-scenes lately. Been a bit since I dug into this particular plugin, but let me see what I can find out.

2 个赞

@waffleslop I can confirm that this plugin still works. Have you enabled the plugin and saved your application API key?

It won’t appear unless the plugin is enabled. A user will need to refresh the page to get it to show up after that.

After that, you will see the following in messages:

Screenshot from 2021-04-17 20-16-14

1 个赞

The plugin works for me. All is well.

您好 @featheredtoast,最近的 discourse 更新是否可能导致了插件损坏?:confused:

在升级到 2.9.0.beta1 几天后,我收到了 Pushover 的消息,称我的 discourse 插件向其 API 发送了太多无效请求。

尽管我的通知量非常低,但还是发生了这种情况。我离他们的配额还差得很远。

嗯,据我所知,没有会破坏 Discourse 端的东西,但我可以看看。

3 个赞

此插件正在发出弃用警告:

Usage of the Ember Global is deprecated. You should import the Ember module or the specific API instead.

是否有计划更新该插件?从我所见,这里已经很久没有活动了。

1 个赞

我也想使用这个。但遗憾的是,我可以确认,目前使用此插件会导致控制台错误 ReferenceError: Ember is not defined

您可以暂时尝试这个分支:

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

我稍后会做一个正式的拉取请求。:+1:

4 个赞

我能确认您修复的版本在我这边可以正常工作!\n谢谢 :folded_hands:

1 个赞

看起来大卫在这方面比我强,谢谢!:smile:

2 个赞

抱歉 @Arkshine - 我正在处理 Site broken due to ember 5 upgrade - #12 by david 上关于同一问题的报告。

在我看来,你的 PR 仍然值得发布,然后我会关闭我的。看起来你的 PR 做了一些清理工作,还修复了一个服务器端弃用 :chefs_kiss:

1 个赞

没问题 @david :smile:。我想把它分成多个 PR,但在这里可能没那么重要。
我已经提交了 PR :+1:

4 个赞

抱歉最近没有跟进这个插件的维护——感谢 @Arkshine 的更改——非常感激 :heart:

3 个赞

我做了一个小小的 PR 来修复 chat_message 到达时缺失的翻译。

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

2 个赞