Open ViktoriaShelestenko opened 6 years ago
I have solve! If someone have the same problem as me, use AppState
AppState.addEventListener('change', this._handleAppStateChange);
_handleAppStateChange = (nextAppState) => {
if (this.state.appState && this.state.appState.match(/inactive|background/) && nextAppState === 'active') {
BackgroundTask.schedule();
}
this.setState({appState: nextAppState});
}
Hello. I found problem in your module. I have app, when i minimize it or close it on android all works fine. But when i have these steps:
background task does not work. Help me please, what i can do with that ?