-
Notifications
You must be signed in to change notification settings - Fork 111
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels