react-native-background-geolocation: Native Module cannot be null

Your Environment

  • Plugin version: 2.9.4
  • Platform: iOS
  • OS version: IOS 11.0
  • Device manufacturer / model: iOS Simulator iPhone 6
  • React Native version (react-native -v): 0.49.3
  • Plugin config: None

Expected Behavior

The app should run correctly

Actual Behavior

Unfortunately, an error occured: 22471535_206288349911647_1759274169_n

Steps to Reproduce

  1. Installed using iOS Installation with rnpm
  2. After not getting the result, I tried the Manual Installation. See screenshots on every steps:
  • Adding 3 Libraries into Project Navigator 22501038_206291729911309_1286478289_n

  • Link Binary With Libraries and other frameworks 22472525_206292313244584_183710345_n

  • Adding Framework Search Paths 22447156_206294046577744_2034764766_n

  • Configure Background Capabilities 22447457_206295349910947_337458128_n

  • Edit Info.plist 22471653_206295853244230_1616236402_n

  • BackgroundFetch AppDelegate extension 22447667_206296233244192_790996638_n

  1. react-native run-ios

Context

Import React native background geolocations

Debug logs

I dont know where to find the logs. Sorry. I’m using xCode 9.0 and this is my first time building an ios app.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (7 by maintainers)

Commits related to this issue

Most upvoted comments

it is the repetition issue, I removed potential conflicting npm, and it can build and run now. thanks man.

@christocracy I just gone to bare again using react-native init. I guess I had just messed up the installation. @IikkaWinter, just try react-native init then after that try this https://github.com/transistorsoft/react-native-background-geolocation/blob/master/docs/INSTALL-IOS-RNPM.md. After this, i didn’t get any error regarding about that again. I hope it works for you. Gonna close this issue