To overcome this and to sign to the system that Ampere should be kept running in the background the following can be done:
- Android Settings
- Apps & notifications
- Advanced
- Special app access
- Battery optimization
- click the "Not optimized" title
- select "All apps"
- click Ampere in the list
- select "Don't optimize"
Get Ampere on Google Play