react-native-background-timer icon indicating copy to clipboard operation
react-native-background-timer copied to clipboard

Timer not working when app is close

Open tahakhozooie opened this issue 6 years ago • 10 comments

Hello

I tried to use this library for my app and it's work successfully! but when i close application completely in ios, background timer not running

can you help me?

tahakhozooie avatar Mar 04 '19 09:03 tahakhozooie

same issues++

phipop-asn avatar Mar 06 '19 05:03 phipop-asn

you are talking about the killing the app ,arent you ? As I know, it does not work when the app is killed

denizbas92 avatar Mar 11 '19 12:03 denizbas92

@denizbas92 Yes, killing the app. Do you know any solution? I need to access significant location and run axios every minutes

mttirpan avatar Mar 20 '19 21:03 mttirpan

If you are coding react-native for just android,you can use the react-native-background-jop libary, it is working when the app is killed,you can put your gps part inside the method that the library gives you. In Ios part, there is a library called react-native-background-gps and you ca use it. As I know ios part is free.

denizbas92 avatar Mar 21 '19 08:03 denizbas92

@denizbas92 i am sending the app to background, NOT KILLING, And there is a webview i want to Reload in background each min.

Well, it seems android pause the app completely after 180 sec.

Any advice how to keep app running even when mobile is locked?

Regards

beshoo avatar Apr 27 '19 17:04 beshoo

is there any update about this issue?

gunduzcihat avatar Feb 27 '20 07:02 gunduzcihat

+1

lyseiha avatar Jul 31 '20 09:07 lyseiha

same issue here, seems like the package only works when app goes from foreground to background, not the app killed background condition i'm trying to support for my app

winardis avatar Aug 11 '20 10:08 winardis

any other solution to work in ios background service when app is killed ?

dipali43 avatar Feb 25 '21 06:02 dipali43

any other solution to work in ios background service when app is killed ?

Its https://github.com/vikeri/react-native-background-job that works even when app is closed (not only in background=> (app not is focus) and foreground)

https://npmtrends.com/react-native-background-job-vs-react-native-background-task-vs-react-native-background-timer

humblesami avatar Jan 20 '23 12:01 humblesami