6
61
Fork
You've already forked android
5

Doesn't work with Forkgram/Mercurygram gateways #52

Closed
opened 2025年06月26日 15:20:55 +02:00 by Daigual · 9 comments

I have configured Mercurygram and Forkgram to use notifications via Sunup in Android 13, but the notifications never arrive. Using Ntfy is no problem and nots. work like a charm.
The server I use in Sunup is the default one, https://push.services.mozilla.com, because I don't know of any others. Maybe other server could work? You know of any?

TY.

I have configured Mercurygram and Forkgram to use notifications via Sunup in Android 13, but the notifications never arrive. Using Ntfy is no problem and nots. work like a charm. The server I use in Sunup is the default one, https://push.services.mozilla.com, because I don't know of any others. Maybe other server could work? You know of any? TY.
Owner
Copy link

Unfortunately, Telegram uses a draft of web push that has been published in Oct 2016 and deprecated in Nov 2016, which isn't compatible with UnifiedPush. Telegram also support simple push which isn't compatible too;

So Forkgram and Mercurygram are using a push gateway to translate simple push to web push (likely this one: https://github.com/Mercurygram/Mercurygram/tree/Mercurygram/Gateways) ; But their gateway doesn't add encryption (which is required, but not really necessary for a simple ping like it does). They can fake encryption by adding the header Content-Encoding: aes128gcm to the push requests; cf. UnifiedPush/wishlist#22

So, a single line should fix the issue on their gateway :)

Unfortunately, Telegram uses a draft of web push that has been published in Oct 2016 and deprecated in Nov 2016, which isn't compatible with UnifiedPush. Telegram also support simple push which isn't compatible too; So Forkgram and Mercurygram are using a push gateway to translate simple push to web push (likely this one: https://github.com/Mercurygram/Mercurygram/tree/Mercurygram/Gateways) ; But their gateway doesn't add encryption (which is required, but not really necessary for a simple ping like it does). They can fake encryption by adding the header `Content-Encoding: aes128gcm` to the push requests; cf. https://codeberg.org/UnifiedPush/wishlist/issues/22 So, a single line should fix the issue on their gateway :)
Author
Copy link

Thank you for your detailed explanation, for which complete understanding unfortunately I lack the sufficient computer training (I only opened this Codeberg account to report the problem, I don't work or have any connection with development or computer science in general).
I suppose the final conclusion is: "you better use Ntfy" since Sunup will not work until the developers of Forkgram et al. fix that gateway thing.

Thank you for at least clarifying the situation, anyways.

Thank you for your detailed explanation, for which complete understanding unfortunately I lack the sufficient computer training (I only opened this Codeberg account to report the problem, I don't work or have any connection with development or computer science in general). I suppose the final conclusion is: "you better use Ntfy" since Sunup will not work until the developers of Forkgram et al. fix that gateway thing. Thank you for at least clarifying the situation, anyways.
Owner
Copy link

Just open an issue on mercurygram, they will fix their gateway; As I said it is a one line fix

Just open an issue on mercurygram, they will fix their gateway; As I said it is a one line fix
Author
Copy link

Mercurygram seems abandoned. I installed it just for testing. I'll try on Forkgram. Thx.

Mercurygram seems abandoned. I installed it just for testing. I'll try on Forkgram. Thx.
s1m changed title from (削除) Sunup doesn't seem to work. (削除ここまで) to Doesn't work with Telegram-FOSS/Mercurygram gateways 2025年06月27日 16:46:43 +02:00
Owner
Copy link

I've open a PR on their repo: https://github.com/Mercurygram/Mercurygram/pull/64

If Forkgram use the gateway, you can link to the pr

I've open a PR on their repo: https://github.com/Mercurygram/Mercurygram/pull/64 If Forkgram use the gateway, you can link to the pr
Owner
Copy link

It has been merged, I think it should be deployed soon

It has been merged, I think it should be deployed soon
Owner
Copy link

Let me know when it's done so I can close this issue

Let me know when it's done so I can close this issue
s1m changed title from (削除) Doesn't work with Telegram-FOSS/Mercurygram gateways (削除ここまで) to Doesn't work with Forkgram/Mercurygram gateways 2025年06月27日 17:57:38 +02:00
Owner
Copy link

The gateway has been updated, and is the same on forkgram; I'm closing this issue 👍

The gateway has been updated, and is the same on forkgram; I'm closing this issue 👍
Author
Copy link

I thought Mercurigram had become abandonware because there hadn't been any updates in almost a year.
In any case, I no longer have it installed, but Forkgram only, and indeed the notifications now work with Sunup, which is lighter than Ntfy and perfectly meets my needs.

Thank you for fixing the problem so quickly. :D

I thought Mercurigram had become abandonware because there hadn't been any updates in almost a year. In any case, I no longer have it installed, but Forkgram only, and indeed the notifications now work with Sunup, which is lighter than Ntfy and perfectly meets my needs. Thank you for fixing the problem so quickly. :D
Sign in to join this conversation.
No Branch/Tag specified
main
1.2.3-rc1
1.2.2
1.2.1
1.2.0
1.1.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.2.2
0.2.1
0.2.0
0.1.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Sunup/android#52
Reference in a new issue
Sunup/android
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?