Sign in
Log inSign up

Can I run background service in React Native?

Sriraman's photo
Sriraman
·Jun 1, 2016

I want to wake my application every one hour and do some simple task using javascript in the background. Is it possible in React Native?​

As far as I know, Native modules can signal events to javascript only using DeviceEventEmitter or ActivityEventEmitter or LifecycleEventEmitter in React Native. Using these emitters, Javascript can just listen to an event from Native module. But, I couldn't find a way to trigger a javascript function from the Native module when the application is closed.