SmsMatrix
SmsMatrix copied to clipboard
Battery optimisation kills Matrix event listener.
If android is Optimising battery use it will kill the matrix service. The app will start listening again for a couple minutes (until killed by android) if we receive a text message or if the app is manually opened.
Maybe something like this can help: android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS
- https://code.briarproject.org/briar/briar/blob/master/briar-android/src/main/AndroidManifest.xml
- https://stackoverflow.com/questions/33114063/how-do-i-properly-fire-action-request-ignore-battery-optimizations-intent