react-native-background-task icon indicating copy to clipboard operation
react-native-background-task copied to clipboard

Undefined is not an object

Open ejdzipi opened this issue 7 years ago • 4 comments

Hello, I just started experimenting with this android background tasks, but i was not able to run even simple example.

screenshot_20180406-151055

I have started with create-react-native-app, ejected from expo, added react-native-background-task, linked, updated MainApplication.java and tried to implement Simple example from this project's readme. After running the app, i got this error. I want this to run just on android, so i did not install react-native-background-fetch.

My package versions: "react": "16.3.0-alpha.1", "react-native": "0.54.0", "react-native-background-task": "^0.2.1", "react-navigation": "^1.5.11"

Any clue about how to fix this? Thanks.

ejdzipi avatar Apr 06 '18 13:04 ejdzipi

Same problem here, did you find a solution? thanks

giuliogatto avatar Apr 14 '18 08:04 giuliogatto

It seems react-native link should help. At least it worked for me.

ivan-branets avatar May 04 '18 23:05 ivan-branets

@ivan-branets sadly, it didn't help @jamesisaac any fix for this? thanks

ejdzipi avatar May 09 '18 07:05 ejdzipi

Linking does not work for me neither

terrynguyen255 avatar Jul 09 '21 09:07 terrynguyen255