Android keeps pushing power optimization in order to protect user from battery draining apps. Unfortunatelly, some apps need to be running on the backround in order to fulfil their core functionality. In adition to the core power optimization, vendors are coming up with their own power optimization solutions, which are harder to find. This library was created to help app developers guide users to perform correct settings in order for the app to survive batery optimization features.
Step 1. Add the JitPack repository to your build file
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.qase:power-optimization-survivor-android:v1.0'
}
Step 1. Add the JitPack repository to your build file
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Step 2. Add the dependency
<dependency>
<groupId>com.github.qase</groupId>
<artifactId>power-optimization-survivor-android</artifactId>
<version>v1.0</version>
</dependency>