I have an app built with cordova-6.3.1 and cordova-android-5.2.2. The callbacks for setInterval and setTimeout are being executed in the background without issues on our Samsung S5 and Nexus 5 (both running Android 6.0).
However, the javascript timers seem to be suspended on Nexus 5X running Android 7.0.
I have tried removing calls to WebView.onPause() and WebView.pauseTimers() but setInterval and setTimeout still won't work in the background.
I have manually whitelisted the app from Doze but it did not help.
Is there any workaround to allow setInterval and setTimeout to work in the background for Nougat?