I already made a post about this but someone pointed out that it seems a bit more complex than it should, so I've simplified it...
This is a post for people who want Proton Bridge running on their android device AND for people who want notifications without having google play services installed (GRAPHENEOS for example).
It uses about 0.3% of battery for me from a full charge.
It installs the bridge and sets a script to automatically run the bridge when your device boots.
If you force close Termux or it crashes, your email client will give you an error when it checks for new emails...... If this happens, run the following command to restart the bridge....
proton-bridge --cli
===============================
Install Termux and Termux:Boot
Give them unrestricted battery usage
Give Termux network usage
Open Termux:Boot once, then close it
TERMUX COMMANDS
pkg install pass proton-bridge -y
proton-bridge --cli
login
info (IMAP/SMTP info for email client)
Start a 2nd Termux session
cd ~/.termux
mkdir boot
cd boot
pkg install vim -y
vi proton.bridge
i
Paste these 3 lines........
!/data/data/com.termux/files/usr/bin/sh
termux-wake-lock
proton-bridge --cli
Press the escape button
:wq (on the keyboard, type ':wq')
===============================
And that's it