# Xibo for Android - R404 (Android 11) - Does Not Execute Collect Interval

**URL:** https://community.xibo.org.uk/t/xibo-for-android-r404-android-11-does-not-execute-collect-interval/33190
**Category:** Xibo Player for Android
**Created:** [September 5, 2024, 2:44pm UTC](https://community.xibo.org.uk/t/xibo-for-android-r404-android-11-does-not-execute-collect-interval/33190 "2024-09-05T14:44:01Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![pitoco02](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/pitoco02/32/15878_2.png) [@pitoco02](https://community.xibo.org.uk/u/pitoco02)
#### Post date: [September 5, 2024, 2:44pm UTC](https://community.xibo.org.uk/t/xibo-for-android-r404-android-11-does-not-execute-collect-interval/33190/1 "2024-09-05T14:44:01Z")

</div>

I am facing an issue with Android 11 players using XFA version R404.

The problem is that the device does not respect the CMS collection interval. Instead of sending a request at the set interval, it simply skips the collection interval.

Sometimes it sends a request to the CMS after an hour, but generally, it only starts working again when the application is restarted or when a “Collect Now” command is sent via XMR.

This has been happening with some devices.

I was browsing the community and found another user reporting this behavior, but with version R310.

> [@Player is contacting CMS server only once per hour. Collect Interval not working](https://community.xibo.org.uk/t/player-is-contacting-cms-server-only-once-per-hour-collect-interval-not-working/29341):
>
> We have two players, which contact our CMS server every hour even though we have individually set Collect interval to 5 minutes. We are getting the following message to log: Method: XFA:DisplayManager. Message: HeartBeatEvent: We have missed our schedule check, start one manually. Next update set for: 2023-05-10 11:33:09 What could be the problem? We’d like to have these displays contact the CMS more often. The player version is 310 - 40a4299

Here is evidence of this behavior from the status screen: The current time shows 11:28. However, the field showing when the next update will occur shows 11:05. In other words, the player skipped the request… and this causes the player to be shown as “offline” in the CMS.

 ![image](https://community.xibo.org.uk/uploads/default/original/3X/0/0/00ef802ee8c0cb8a0caeac9ff70eb73e72eb71d0.png)

Could you please investigate this?

Thank you.

---

<div class="post-metadata">

### Author: ![pitoco02](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/pitoco02/32/15878_2.png) [@pitoco02](https://community.xibo.org.uk/u/pitoco02)
#### Post date: [September 6, 2024, 7:57pm UTC](https://community.xibo.org.uk/t/xibo-for-android-r404-android-11-does-not-execute-collect-interval/33190/2 "2024-09-06T19:57:48Z")

</div>

BTW: All permissions are granted.

@dan any consideration?

---

<div class="post-metadata">

### Author: ![pitoco02](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/pitoco02/32/15878_2.png) [@pitoco02](https://community.xibo.org.uk/u/pitoco02)
#### Post date: [September 7, 2024, 1:02am UTC](https://community.xibo.org.uk/t/xibo-for-android-r404-android-11-does-not-execute-collect-interval/33190/3 "2024-09-07T01:02:59Z")

</div>

Update:  
Still under investigation here.  
After a lot of testing, I have a suspicion that this may be caused by Android’s power saving.  
I will apply some power control modifications to a certain amount of equipment to have a comparison over the weekend.  
I’ll let you know the progress.

---

<div class="post-metadata">

### Author: ![pitoco02](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/pitoco02/32/15878_2.png) [@pitoco02](https://community.xibo.org.uk/u/pitoco02)
#### Post date: [September 8, 2024, 2:20pm UTC](https://community.xibo.org.uk/t/xibo-for-android-r404-android-11-does-not-execute-collect-interval/33190/4 "2024-09-08T14:20:19Z")

</div>

Apparently the problem is caused by Android 11’s battery saving settings (which, by the way, is very annoying with these issues related to running in the background).

Fortunately, **there is a solution** : You must add the Xibo app to the “Not optimized” list in the energy saving settings.

This link shows where you can find this setting depending on your Android model, and (obviously) you should apply the setting to the Xibo app.

> **[How to Disable Android Battery Optimization](https://support.convoy.com/en/articles/722176)**
>
> In order for your location to track on you or your driver's Android device, it is important that "android battery optimization" is disabled for the Co...

The path used on my Android model was this:

Settings → Apps → Special app access → Energy Optimization:  
Find Xibo App and **DISABLE** this app’s battery/energy optimization.

Or you may use this:

- Open **Settings** on your Android device.
- Navigate to **Apps & notifications**.
- Select **Special app access** (it may be under **Advanced** settings).
- Tap **Battery optimization**.
- Select **All apps** from the drop-down menu.
- Scroll to find `Xibo`.
- Select **Don’t optimize**.

Both path’s do the same thing.

On Friday, I connected fourteen Android 11 devices.  
7 of them I set the configuration mentioned above and 7 of them I didn’t.

Today (sunday), **the 7 that received the configuration respected the collection interval perfectly** again, while the others that did not receive the configuration continued to have problems with the collection interval.

PS: I didn’t find commands to make this configuration. Unfortunately (until now) the solution must be done through the Android interface. If anyone has a command for this, please share it with us.

---

<div class="post-metadata">

### Author: ![dan](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/dan/32/9115_2.png) [@dan](https://community.xibo.org.uk/u/dan)
#### Post date: [September 10, 2024, 12:47pm UTC](https://community.xibo.org.uk/t/xibo-for-android-r404-android-11-does-not-execute-collect-interval/33190/5 "2024-09-10T12:47:13Z")

</div>

I see that you have a solution for this already, which is great.

On our side we did make changes in v4 R400 to fire our alarms with `setExactAndAllowWhileIdle` and `ELAPSED_REALTIME_WAKEUP` which should in theory still work while idle. As you say though, the battery optimisation seems capable of disabling even this.

We have this logged and will continue to try and improve. Thanks for writing up the workaround.

---

<div class="post-metadata">

### Author: ![system](https://community.xibo.org.uk/uploads/default/original/2X/a/a8759c2d8cc561474733895ac75beeb830f5d8ca.png) [@system](https://community.xibo.org.uk/u/system)
#### Post date: [December 10, 2024, 6:48pm UTC](https://community.xibo.org.uk/t/xibo-for-android-r404-android-11-does-not-execute-collect-interval/33190/6 "2024-12-10T18:48:01Z")

</div>

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.
