The following code will show a dialog that asks the user to whitelist the app and ignore battery optimizations. This is useful if your app needs to run in the background. Note that it is likely that your app will not be accepted to Google Play with this request so it is more useful for...
www.b4x.com