SmsMatrix icon indicating copy to clipboard operation
SmsMatrix copied to clipboard

Battery optimisation kills Matrix event listener.

Open ghost opened this issue 7 years ago • 2 comments

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.

ghost avatar Nov 17 '18 15:11 ghost

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

tijder avatar Dec 08 '18 19:12 tijder

You may want to have a look at what davx5 does

mvgorcum avatar Feb 11 '19 13:02 mvgorcum