-
Notifications
You must be signed in to change notification settings - Fork 112
Open
Description
I have setup a task to run when application goes background. Unfortunately, its not working for me. Please find the below code
import BackgroundTask from 'react-native-background-task'
import { Vibration } from 'react-native';
BackgroundTask.define(() => {
Vibration.vibrate(3000);
BackgroundTask.finish()
});
const App = () => {
React.useEffect(() => {
BackgroundTask.schedule({ period: 60 });
});
}
Any help on this.
corasphinx and nick0504kibrahmkrgz, DukeCityDev, martinop, be-ansh-sharma, powilliam and 4 more
Metadata
Metadata
Assignees
Labels
No labels