question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[IOS] App crashes on Restart with NSInternalInconsistencyException

See original GitHub issue

“react-native-fcm”: “15.0.2”, ios Simuator: ios version 11.2.0 (16G1314) app running in foreground

I am using wix/react-native-navigation. the last function it is calling before app crashes is FCM.enableDirectChannel(); FCM.on(FCMEvent.DirectChannelConnectionChanged, (data) => { console.log(direct channel connected ${data}); }); setTimeout(() => { FCM.isDirectChannelEstablished().then((d) => console.log(d)); }, 1000); }

app crashes only in debug mode with the following error

Fatal Exception: NSInternalInconsistencyException Error when sending event: FCMDirectChannelConnectionChanged with body: true. Bridge is not set. This is probably because you've explicitly synthesized the bridge in RNFIRMessaging, even though it's inherited from RCTEventEmitter.

this is my AppDelegate.m file

screen shot 2018-05-23 at 2 45 56 pm screen shot 2018-05-23 at 2 44 56 pm

Please let me know if I am missing anything.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
skomatireddycommented, May 29, 2018

Sorry for the confusion, its just the screen shot continuation. I have not called it twice, first screen shot ends after return Yes, from there its the second screen shot with the same lines to follow the flow.

0reactions
tuannguyenhoangitcommented, Apr 27, 2019

For myside, open notification from app killed. Please help.

Fatal Exception: NSInternalInconsistencyException Error when sending event: FCMNotificationReceived with body: { “_actionIdentifier” = “com.apple.UNNotificationDefaultActionIdentifier”; “_completionHandlerId” = “2BD076CB-76CA-4B29-A451-017CBBC05A68”; “_notificationType” = “notification_response”; aps = { alert = { body = “tuan12313: le to display the "Green Test" prefix in green.1”; title = “Visitor Message”; }; category = “SHOW_VISITOR_MESSAGES_ACTION”; }; “gcm.message_id” = “0:1556276035386472%db740235db740235”; “google.c.a.e” = 1; “opened_from_tray” = 1; }. Bridge is not set. This is probably because you’ve explicitly synthesized the bridge in RNFIRMessaging, even though it’s inherited from RCTEventEmitter.

Read more comments on GitHub >

github_iconTop Results From Across the Web

iOS 15 crash: Fatal Exception: NSI… | Apple Developer Forums
The crash is caused by an iOS defect and not a defect in my app. code-blockFatal Exception: NSInternalInconsistencyException 0 CoreFoundation 0x91cac ...
Read more >
ios - App crashes, Xcode 11.5, Swift 5 ...
I get the following as an error message: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'App called - ...
Read more >
[IOS] App crashes on Restart with NSInternalInconsistencyException
"react-native-fcm": "15.0.2", ios Simuator: ios version 11.2.0 (16G1314) app running in foreground. I am using wix/react-native-navigation.
Read more >
What do I do if the Dropbox iOS app crashes?
Restart the app from the main screen. Uninstall the app and reinstall it. From your home screen, tap and hold the Dropbox icon...
Read more >
iOS Crash: gc.safepoint_poll - SIGABRT: unexpected start state
They're all "Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unexpected start state'". Unfortunately the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found