react-native-background-task
react-native-background-task copied to clipboard
undefined is not an object (evaluating 'RNBackgroundTask.schedule')
How can i fix it?
@ddthanhdat i have the same issue and it gets fixed when i did this part in the documentation
Did you run react-native link? also did you recompile and reinstall the app in your mobile phone?
Hi, im trying to run the example (fetch data in background) and i have the same problem , im using expo for build the app, how can i solve this problem?
Facing same issue ,please help.
facing same issue, any solution ??
One manual step is still needed - in your project file android/app/src/main/java/myapp/MainApplication.java, add the following to the end of the onCreate() method: BackgroundTaskPackage.useContext(this);
How do I execute this step in an expo project?
One manual step is still needed - in your project file android/app/src/main/java/myapp/MainApplication.java, add the following to the end of the onCreate() method: BackgroundTaskPackage.useContext(this);
How do I execute this step in an expo project?
Run expo eject to generate android folder, sadly it didnt solve the issue for me.
One manual step is still needed - in your project file android/app/src/main/java/myapp/MainApplication.java, add the following to the end of the onCreate() method: BackgroundTaskPackage.useContext(this);
How do I execute this step in an expo project?
Run expo eject to generate android folder, sadly it didnt solve the issue for me.
For me neither
Anyone know how to fix this?
Any ideas?
any idea?