Call scheduled nanoflow when app is not used (sleep/lock)

0
Hi experts,   I have requirements to run nanoflow in background. I already used app event and set it every 10 seconds to call nanoflow, this way is work but when I closed my native app or lock my screen the background event is stopped…   is there any idea how to call nanoflow when app is not used (sleep/lock) ?    Thanks, Zacky
asked
2 answers
2

Headless JS may be a solution https://reactnative.dev/docs/headless-js-android

 

answered
0

hii Zacky Hotib,

if you can use javascript then just call cal nanoflow after page load and inside nanoflow call a javascript action

and in javascript we have setTimeout () method that can call you function when screen is lock of your PC 

Window setTimeout() Method (w3schools.com)

I hope this will help you 

answered