-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error when sending event: healthKit:ActiveEnergyBurned:setup:success with body: { }. RCTCallableJSModules is not set. This is probably because you've explicitly synthesized the RCTCallableJSModules in RCTAppleHealthKit, even though it's inherited from RCTEventEmitter.' #166
Comments
@shaheem-khanzada latest version is broken for me as well, I'd recommend rolling back to 1.10.0 for the time being |
@moulie415 thanks 🙏 |
@moulie415 one more thing can we use this for fitness tracking like start workout and start tracking |
@shaheem-khanzada perhaps have a read of this https://docs.react-native-health.com/background-methods/background |
Probably facing the same issue. my environments. The app will close immediately after launching. Exception NSException * "Error when sending event: healthKit:ActiveEnergyBurned:setup:success with body: {\n}. RCTCallableJSModules is not set. This is probably because you've explicitly synthesized the RCTCallableJSModules in RCTAppleHealthKit, even though it's inherited from RCTEventEmitter." 0x0000000281bc1a10 Does anyone have "Background Observers" working? |
Did it work after downgrading? Im facing the same issue on v1.10.0,v1.11.0,v1.12.0. |
@moulie415 downgrading to 1.10.0 works. But when you try to get samples in the background listener, it always obtains empty. The console logs multiple times: "RNHealth: An error occured while trying to add sample from: com.apple.health." (similar to #177) Any ideas? My App.tx:
|
same error |
@AnnyFigueira, I believe this is an issue with this commit (8d8cb16). It may only be an issue on M1. |
@JDMathew what do you suggest should be the fix for this ? I went back to version 1.10.0 but it didn't work out there as well. here is my error |
@macelai can you please update on this ? Has been opened since a long time |
@oyesaxena There is no one working actively on this project, we are open to PRs. |
Hey folks. Still getting this, anyone found a work around yet? Rolled back to 1.10.0 for the time being. |
Facing same issue, downgraded on 1.10.0, didn't get fixed, Any other solutions? |
2021-10-14 15:40:31.225818+0500 nikenft[2680:1606672] [HealthKit] Background observers will be added to the app
2021-10-14 15:40:31.228034+0500 nikenft[2680:1606672] [HealthKit] Background observers added to the app
2021-10-14 15:40:31.233119+0500 nikenft[2680:1606919] *** Assertion failure in -RCTEventEmitter sendEventWithName:body:, /Users/muhammadshaheem/Documents/Work/Projects/nikenft/node_modules/react-native/React/Modules/RCTEventEmitter.m:58
2021-10-14 15:40:31.233242+0500 nikenft[2680:1606918] [connection] nw_endpoint_handler_set_adaptive_read_handler [C2 172.20.10.2:8081 ready socket-flow (satisfied (Path is satisfied), viable, interface: bridge100, ipv4, dns)] unregister notification for read_timeout failed
2021-10-14 15:40:31.233335+0500 nikenft[2680:1606918] [connection] nw_endpoint_handler_set_adaptive_write_handler [C2 172.20.10.2:8081 ready socket-flow (satisfied (Path is satisfied), viable, interface: bridge100, ipv4, dns)] unregister notification for write_timeout failed
2021-10-14 15:40:31.234060+0500 nikenft[2680:1606919] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error when sending event: healthKit:ActiveEnergyBurned:setup:success with body: {
}. RCTCallableJSModules is not set. This is probably because you've explicitly synthesized the RCTCallableJSModules in RCTAppleHealthKit, even though it's inherited from RCTEventEmitter.'
*** First throw call stack:
(0x1883f6708 0x19cf007a8 0x1882f83b8 0x18972181c 0x104dc1894 0x104c43374 0x10932c0b4 0x10932dde0 0x109335ef0 0x109336d48 0x109343a50 0x1d40667a4 0x1d406d74c)
libc++abi: terminating with uncaught exception of type NSException
terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error when sending event: healthKit:ActiveEnergyBurned:setup:success with body: {
}. RCTCallableJSModules is not set. This is probably because you've explicitly synthesized the RCTCallableJSModules in RCTAppleHealthKit, even though it's inherited from RCTEventEmitter.'
I am getting these issues when adding Background Observer Support
The text was updated successfully, but these errors were encountered: