MCMrARM / revolution-irc

A modern Android IRC client. #revolutionirc on Libera.chat
GNU General Public License v3.0
553 stars 63 forks source link

App Launch manage manually #280

Open mahengrui1 opened 3 years ago

mahengrui1 commented 3 years ago

It crashes 1 min after going to background and IRC will receive an exit message as 'read error'. In this case the topbar still has Revolution IRC and can be opened. Revolution doesn't realize the exit, but when I type and send message, no message appears. Even Re-connection can not do it, it must disconnect and close the server and activate again.

Android 9.

After I set Android system/Apps/App Launch to manually give more permission to Revolution the issue disappears but I guess some code is not perfect here

mahengrui1 commented 3 years ago

0.5.4

kurahaupo commented 3 years ago

Could this be a matter of Android being set to ask the user whether to grant permissions when first needed, but then not being able to do so when the app is in the background?

Could that be mitigated by exercising all the required rights immediately upon startup, so that the user is prompted before they put the app into the background?

Remind the user to choose "allow always" or "allow and don't ask again", rather than "allow just this once".

mahengrui1 commented 3 years ago

Could this be a matter of Android being set to ask the user whether to grant permissions when first needed, but then not being able to do so when the app is in the background?

Could that be mitigated by exercising all the required rights immediately upon startup, so that the user is prompted before they put the app into the background?

Remind the user to choose "allow always" or "allow and don't ask again", rather than "allow just this once".

I have no idea but thanks for participant