Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Background start not allowed when Optimizing battery use #3192

Open
532910 opened this issue Jun 21, 2019 · 4 comments
Open

Background start not allowed when Optimizing battery use #3192

532910 opened this issue Jun 21, 2019 · 4 comments

Comments

@532910
Copy link
Contributor

532910 commented Jun 21, 2019

With Battery optimization set to Optimizing battery use:

I EventStreamServiceX: sendAction im.vector.services.EventStreamServiceX.PUSH_RECEIVED
D GmsGcmRegisterSvc: onBind: Intent { act=com.google.android.c2dm.intent.REGISTER pkg=com.google.android.gms }
W ActivityManager: Background start not allowed: service Intent { act=im.vector.services.EventStreamServiceX.PUSH_RECEIVED cmp=im.vector.app/im.vector.services.EventStreamServiceX } to im.vector.app/im.vector.services.EventStreamServiceX from pid=5624 uid=10095 pkg=im.vector.app startFg?=false
I EventStreamServiceX: ## Failed to start event stream
I EventStreamServiceX: java.lang.IllegalStateException: Not allowed to start service Intent { act=im.vector.services.EventStreamServiceX.PUSH_RECEIVED cmp=im.vector.app/im.vector.services.EventStreamServiceX }: app is in background uid UidRecord{...}

microG Setting shows incoming push is received, but unable to start riot.im app

With Battery optimization set to Not optimized all works fine.

RiotX (and SoundCloud) works fine on the same setup (Lineageos+microG) without setting Battery optimization to Not optimized.

LineageOS+microG 16.0, OP3T & ZUK Z2 Plus
Riot.im is from google play.

@532910
Copy link
Contributor Author

532910 commented Jun 28, 2019

Looks like it's not a riot issue.

@532910 532910 closed this as completed Jun 28, 2019
@532910
Copy link
Contributor Author

532910 commented Jul 25, 2019

I've do more tests, an this is definitely a riot.im issue.

@532910 532910 reopened this Jul 25, 2019
@532910 532910 changed the title Background start not allowed on incoming push from microg Background start not allowed when Optimizing battery use Jul 25, 2019
@Gigadoc2
Copy link

Could you elaborate what you did and why you are now confident that this is a riot.im issue?

@532910
Copy link
Contributor Author

532910 commented Jul 25, 2019

As RiotX works fine on the same setup.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants