eddieowens / react-native-boundary

Native implementation of geofencing/region monitoring

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Got error code 1000

sacchykhedkar opened this issue · comments

I trying to implement this library in my project, when i am using 'Boundary.add' i got exception 1000.
i m using
"react-native": "0.55.0",
compileSdkVersion 27
buildToolsVersion "27.0.1"

Thanks in advance

@sacchykhedkar, could you please post the logs from the exception?

Also encountered this error 1000 on Android when using "Boundary.add" but not on iOS.

"react-native": "0.57.8",
buildToolsVersion = "28.0.3"
minSdkVersion = 16
compileSdkVersion = 27

Error: 1000:
at createErrorFromErrorData (NativeModules.js:146)
at NativeModules.js:95
at MessageQueue.__invokeCallback (MessageQueue.js:397)
at MessageQueue.js:127
at MessageQueue.__guard (MessageQueue.js:297)
at MessageQueue.invokeCallbackAndReturnFlushedQueue (MessageQueue.js:126)
at debuggerWorker.js:72

OK, the issue only happens on Android emulator not on real device. It looks like you can't test this on a Android emulator.

I'm getting the same error now on a Pixel 2 XL running android 27. Going to investigate.

Just found the problem after a bit of googling and I was able to correct the problem following this stack overflow thread. To summarize:

  1. Go to Settings -> Location -> Mode
  2. Click "High Accuracy" or "Battery Saving"
  3. Accept the agreement

Fixed!

commented

RNBoundary: com.google.android.gms.common.api.ApiException: 1000
It means Geo-fence unavailable.

To fix on Galaxy S8:
Re-enable Improve Location Accuracy (was enable, for some reason don't work before)

@eddieowens would be nice to document this one in readme!

so i found the solution for 1000, is that if you are using fake gps app for to change location then stop the fake gps app when you run the function of boundary.add, it throw 1000 error

it work for me till now

in my case location was disabled.