UnifiedPush
Protonmail relies solely on Firebase for receiving notifications on Android. While UniversalPush support is probably in the works, it may take some time until users on ROMs without GSF get built-in notifications.
For those that already use ntfy.sh as a push provider for other apps, https://github.com/0ranki/hydroxide-push is a solution to get push notifications of new mail in Inbox.
The service requires a Linux box to run on, and can be deployed as a container or by running the provided binary. Building from source is of course also an option.
The service is a stripped down version of Hydroxide, the FOSS Protonmail Bridge alternative. There are no ports exposed, all communication is outwards. Communications to Proton servers use the Proton API. The service only receives events from Proton servers, and if the event is incoming mail, a notification is sent to a ntfy.sh server and topic of your choice. Other types of events are simply disregarded, and no other processing is done. The sent push event does not contain any detailed information.
EDIT: Starting from version v0.28.8-push7 the daemon supports HTTP basic auth for the push endpoint.
Disclaimer: I'm the author. All of the work is thanks to https://github.com/emersion/hydroxide, I've merely mutilized the great upstream project of most features for a single purpose. Issues, comments and pull requests are welcome!
EDITED: Didn't notice until looking at the image in this post the notification says "ProtoMail" instead of "Protonmail". Changed the image and it's fixed in the latest version, available when the GitHub action finishes
- protonmail.uservoice.com Support UnifiedPush for android notifications
I don't have google services on my phone and having every app permanently connected checking for new messages is detrimental to battery life. UnifiedPush is the open alternative to Google Cloud Messaging: https://unifiedpush.org
- github.com GitHub - 0ranki/hydroxide-push: Service adapted from https://github.com/emersion/hydroxide for receiving push notifications for Protonmail via ntfy.sh
Service adapted from https://github.com/emersion/hydroxide for receiving push notifications for Protonmail via ntfy.sh - 0ranki/hydroxide-push
hydroxide-push is a fork of hydroxide for receiving Proton Mail push notifications for via UnifiedPush created by @oranki@lemmy.world Thanks a lot for creating this awesome project!
This is going to be very useful, until Proton finally implements native UP support in their Android apps. (They currently only support Google's proprietary FCM). Make sure to upvote this feature request: https://protonmail.uservoice.com/forums/284483-proton-mail/suggestions/47423924-support-unifiedpush-for-android-notifications
Consider contributing to the project and make sure to report any bugs that you find.
- fosstodon.org UnifiedPush (@unifiedpush@fosstodon.org)
This is now official, UnifiedPush is receiving a grant from @nlnet@nlnet.nl ! Thanks a lot for their support. Expect some improvements on the protocol and new applications supporting #UnifiedPush in some time !
UnifiedPush is receiving a grant from NLnet (Fediverse profile):
> This is now official, UnifiedPush is receiving a grant from @nlnet ! Thanks a lot for their support. Expect some improvements on the protocol and new applications supporting #UnifiedPush in some time !
Make sure to follow
@nlnet@nlnet.nl
,@unifiedpush@fosstodon.org
and the#UnifiedPush
hashtag on Mastodon (or your preferred ActivityPub-based microblog platform)