ocetnik / react-native-background-timer

Emit event periodically (even when app is in the background)
MIT License
1.61k stars 225 forks source link

Using this package breaks my internet connection #80

Open jakubdrozdek opened 6 years ago

jakubdrozdek commented 6 years ago

Hello!

I was really excited that a package like this exists, because RN doesn't have support for background timers.

However, once I used it, I noticed something really weird: after linking and importing this package into my project, my internet connection is lost. I cannot make any API calls because of 'Network request failed' errors. image

What's even more weird is that when I run my app with React Native Debugger and enable network inspect, it works. When I disable it or run the app on a real device, I cannot make any HTTP requests. I'm 100% sure everything was okay before installing this package.

I'm using Android.

Any ideas?

kaixiniOSTT commented 5 years ago

fetch then catch((error)=>{console.log(error)}). catch should add to fetch