react-native-background-timer
react-native-background-timer copied to clipboard
After the screen is locked, the background program stops running?
After the screen is locked, the background program stops running?
I have the same problem
Is it that the plug-in itself has problems? Or is there something wrong with what we quoted?
------------------ 原始邮件 ------------------ 发件人: "Andre Andrade"<[email protected]>; 发送时间: 2020年3月6日(星期五) 晚上8:35 收件人: "ocetnik/react-native-background-timer"<[email protected]>; 抄送: "IT々じ浩Ю"<[email protected]>;"Author"<[email protected]>; 主题: Re: [ocetnik/react-native-background-timer] After the screen is locked, the background program stops running? (#198)
I have the same problem
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
the problem is with async call inside callback
Have you solved the problem? @EhsanSarshar
Any solution here?
@RNHaoHao there are plenty of solutions. for my case I just need to send geolocation in background that solved with react-native-background-geolocation. you can use react-native-background-action or create your own implementation in native side. or use expo inside your bare react native which is also possible and it's an awesome choice in most cases. expo have good modules for handling background task that now you can use within your react native project easily
After the screen is locked, the background program stops running?
Yes, background time works when app is minimized, but doesn't work when screen is lcoked.
Hi, I had this same issue and found no easy solution with this library, so I made my own which works even if the device is locked (among other improvements). Only Android is supported, but you can still use this (or another) library for iOS in conjunction.
https://www.npmjs.com/package/react-native-background-timer-android
I've been using it in my production apps for more than a week with no issues.