-
-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
battery optimization Info on the 1st start #741
Comments
@mario |
Because Whatsapp has enough 'power' on the market to convince phone/OS vendors to whitelist them inside the operating system code. |
Again 2 users swichted to whatsapp/signal because this nextloud talk thing doen't notifiy after switching to a new phone. |
deactivating of the battery optimization will always be necessary i guess. |
Why users don't have to do it on signal, whatsapp, ...? |
i'm not 100% sure but i guess they are indeed whitelisted in the operating system code, like mario aready said. |
will keep the idea with the permanent notification in mind! but it might be a crutch.. |
More apps with good battery optimization options: DAVx^5 and Goodtime |
i had a closer look if an info about battery optimization makes sense... The intent that is thrown to change the battery optimization is ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS. Unfortunately there are some problems: ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS is quite unreliable (at least for some vendors)(not only for the talk app but for all apps that use this intent) For example for my Redmi Note 7 the behaviour is quite weird: Google doesn't allow ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS for chat appsAs we develop a chat app here, we are not allowed to request battery optimization programmatically. However i'm not 100% confinced that FCM high priority messages always wake up the phones and i can imagine there are vendor specific problems. But i have no proof for this.. So what else can go wrong and what can we do?
Assuming the android settings are not the problem, more points of failure could be
i created issue nextcloud/notifications#1206 so users can check on their own if pushproxy & FCM work. |
Without deactivating of the battery optimization some features are maybe not working.
It could be handy to give the user a hint.
Tutanota has the possibility to deactive the battery optimization with one click on the 1st start.
It would be nice, if the app asks on the 1st start for camara and microphone permissions, too.
The text was updated successfully, but these errors were encountered: