react-native-disable-battery-optimizations-android icon indicating copy to clipboard operation
react-native-disable-battery-optimizations-android copied to clipboard

A react native library for checking battery optimization and whitelisting in Android

Results 8 react-native-disable-battery-optimizations-android issues
Sort by recently updated
recently updated
newest added

**Steps to Reproduce:** - Run `./gradlew assembleRelease` ___ **ERROR FOUND** > Task :react-native-disable-battery-optimizations-android:verifyReleaseResources FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':react-native-disable-battery-optimizations-android:verifyReleaseResources'. >...

I could see there is a method openBatteryModal(). But there is no way to check if permission is granted or not. Please guide me on how to check granted status...

1. Open up android/app/src/main/java/[...]/MainActivity.java 2. Add import com.reactlibrary.RNDisableBatteryOptimizationsandroidPackage; to the imports at the top of the file 3. Add new RNDisableBatteryOptimizationsPackage() to the list returned by the getPackages() method In...

Contributors Needed or Maintainers needed

enhancement

Hello, I just found this library and i saw in the docs the line: `Note: Play store will not allow using this method, and will allow only as an exception`...

Fiz a inclusão da biblioteca onde apresentou o seguinte erro null is not an object (evaluating '_reactNativeDisableBatteryOptimizationsAndroid.default.enableBackgroundServicesDialogue') ` componentDidMount() { RNDisableBatteryOptimizationsAndroid.enableBackgroundServicesDialogue(); this.getData(); Audio.setAudioModeAsync({ allowsRecordingIOS: false, interruptionModeIOS: Audio.INTERRUPTION_MODE_IOS_DO_NOT_MIX, playsInSilentModeIOS: true, interruptionModeAndroid:...

I tried installing the lib in an app with react-native 0.69 version, but it's not allowing me to build the app because it's using the `compile` keyword, which was [removed...