Problem with the battery optimization

Hi all,

I’m trying to automatize my application, but i have a problem with the installation.

It seems to be installed, but Appium detected one activity on the screen, here i paste the logs:

Getting focused package and activity
[ADB] Running ‘C:\Users\MariaAlejandra\AppData\Local\Android\Sdk\platform-tools\adb.exe -P 5037 -s K0154701637 shell dumpsys window windows’
[ADB] Found package: ‘com.android.settings’ and fully qualified activity name : ‘com.android.settings.fuelgauge.RequestIgnoreBatteryOptimizations’
[ADB] Incorrect package and activity. Retrying.

I can’t completely install my application, there is any way, in the capabilities, to not optimize the battery with my app?

Sincerely,