OnePlus
Turn off Battery Optimization:
- Go to System Settings > Apps > Gear Icon > Special Access > Battery Optimization > Turn off
Make sure the Advanced Optimisation options are disabled:
- Go to Settings > Battery > Battery optimization > [3 dots] > Advanced optimization
- Verify that the options Advanced optimisation' and 'Sleep standby optimisation' are both disabled
Turn Battery optimisation OFF for the Danalock App:
- Go to Settings > Battery > Battery optimization > Danalock App > select don’t optimize > click done
Lock the Danalock App in your 'Recent Apps' list:
- Open the Danalock App and touch the Home button.
- Touch the 'Recent Apps' button at your device
- Toggle the 'Lock' icon in the upper right corner of the Danalock App, to switch it to a closed lock icon symbol
Disable App Auto-Launch for the Danalock App:
Some OnePlus phones have App Auto-Launch. It prevents the Danalock App from working in the background.
- Go to settings > apps > cog wheel in above right corner > scroll down > App Auto Launch > Disable for the Danalock App
- Also try: Phone settings > Battery > Battery optimization and switch to the All apps list (Top menu) > Your app > Don’t optimize
1+3 and earlier
Turn off doze mode:
Turn developer options on:
- Go to Settings > About phone > Build number.
- Tap Build number seven times. After the first few taps, you should see the steps counting down until you unlock the developer options. Once activated, you will see a message that reads, “You are now a developer!”
- Turn doze mode off in Settings > Developer options
Disable Enhanced optimization:
- Go to Settings > Battery > Battery optimization > (three dots) > Enhanced optimization. Enhanced optimization may also be named Advanced optimization
Check recent app management:
- Go to Settings > Advanced > Recent app management > Normal clear