tijder / SmsMatrix

A simple SMS <--> Matrix bridge.
https://matrix.to/#/#smsmatrix:matrix.org
GNU General Public License v3.0
214 stars 37 forks source link

Battery optimisation kills Matrix event listener. #32

Open ghost opened 5 years ago

ghost commented 5 years ago

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.

tijder commented 5 years ago

Maybe something like this can help: android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS

mvgorcum commented 5 years ago

You may want to have a look at what davx5 does