-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fails to share a link when marshmallow's battery saver is ON #22
Comments
Thanks for the report, I could reproduce the bug, I'm looking into it. |
It seems that the problem is coming from android "battery saving" system which refuses some connections from background services. Temporary, "un-optimising" the application is a good solution. Because the app only makes one or two network calls (in order to post the link), it should have no effect on your battery life. But I understand that it is a suboptimal solution. |
I was trying to understand why Shaarlier is considered as a background app, and I found this:
|
Ok, so for the moment it will be a won't fix, if I want to keep the sharing in the background (in a non blocking way) I must use GCM and for this application I don't want to be too dependant on Google services. The other workaround is to ask the user to "disable battery optimization", but for some reasons, Google remove apps asking for this request. So, unless I find a way to do the web request in the foreground (I mean called from a foreground thread), the bug won't be fixed. I may document this issue to avoid future surprises from other users. |
Hi,
When using battery saver, sharing does not work.
As soon as I tell Android not to optimize
shaarlier
, sharing works again.If we can't get around it, I think it should be at least documented.
Rom: Omnirom
Android: 6.0.1
Thanks
J.
The text was updated successfully, but these errors were encountered: