Driversnote-Dev / react-native-kontaktio

React Native (iOS and Android) library for Kontakt.io beacons (and all other beacons)
MIT License
111 stars 48 forks source link

Illegal callback invocation from native module. This callback type only permits a single invocation from native code. #17

Closed JonasWho closed 6 years ago

JonasWho commented 7 years ago

We are getting this error in Bugsnag. I am not sure wether it has to be resolved by this library or in React Native. Do you have any idea why this happens?

java.lang.RuntimeException ·CallbackImpl.java:32
Illegal callback invocation from native module. This callback type only permits a single invocation from native code.

CallbackImpl.java:32 · com.facebook.react.bridge.CallbackImpl.invoke
PromiseImpl.java:32 · com.facebook.react.bridge.PromiseImpl.resolve
KontaktModule.java:107 · com.artirigo.kontaktio.KontaktModule$1.onServiceReady
InternalProximityManager.java:72 · com.kontakt.sdk.android.ble.manager.internal.InternalProximityManager$1.onServiceConnected
LoadedApk.java:1453 · android.app.LoadedApk$ServiceDispatcher.doConnected
screen shot 2017-07-01 at 12 11 16
andrekovac commented 7 years ago

Thanks for filing an issue. Could you please provide steps to reproduce the error!

JonasWho commented 6 years ago

I've send a PR now, to hopefully fix it.

andrekovac commented 6 years ago

Fixed by merging PR #21