jamesisaac / react-native-background-task

Periodic background tasks for React Native apps, cross-platform (iOS and Android), which run even when the app is closed.
MIT License
1.1k stars 110 forks source link

Cannot read property 'schedule' of undefined #22

Open munduu opened 6 years ago

munduu commented 6 years ago

componentDidMount() { console.log("BackgroundTask", BackgroundTask); // this show a object BackgroundTask.schedule(); // here i got this error

}

lucianomlima commented 6 years ago

Have this problem too on Android

lucianomlima commented 6 years ago

Sorry, my problem was the manual step in configuration.

KatSick commented 6 years ago

Same problem on RN 0.55. I added manual configuration step

ahmad-abusaa commented 6 years ago

@userinova @lucianomlima i had the same issue and it get solved when i followed this part of documentation https://github.com/jamesisaac/react-native-background-task#android

curselolz commented 6 years ago

Any solution? RN 0.50 react-native-background-task 0.2.1