Hi everyone,
I’ve reached out via support but in the meantime wanted to ask if anybody is experiencing this same issue in the community.
Platform: iOS (expo react-native)
Package: @intercom/intercom-react-native v. 8.1.0
Lately, we are seeing spike in the error `App Hanging +[ICMHTTPBridge submitMetrics]
This seems to be happening in intercom-ios.
Below is a portion of stacktrace:
```
CoreFoundation 0x187de7518 -[NSDictionary isEqualToDictionary:] CoreFoundation 0x187de7514 -[NSDictionary isEqualToDictionary:] CoreFoundation 0x187de75b4 -[NSDictionary isEqualToDictionary:] CoreFoundation 0x187dfe538 ____NSSetI_new_block_invoke CoreFoundation 0x187dfe4a0 __NSSetI_new Foundation 0x186a7ba88 -[NSSet(NSKeyValueCoding) valueForKey:] Intercom 0x1037f3e34 +[ICMHTTPBridge submitMetrics] CoreFoundation 0x187e0a474 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ CoreFoundation 0x187e0a390 ___CFXRegistrationPost_block_invoke CoreFoundation 0x187e08f04 _CFXRegistrationPost CoreFoundation 0x187e08008 _CFXNotificationPost Foundation 0x186a60508 -[NSNotificationCenter postNotificationName:object:userInfo:] UIKitCore 0x18b737174 __47-[UIApplication _applicationDidEnterBackground]_block_invok
```
From my read of the stacktrace, this may be happening when the app is entering background mode (__47-[UIApplication _applicationDidEnterBackground]_block_invok) and intercom ios sdk tries to submit metrics (+[ICMHTTPBridge submitMetrics]) but fails to do so causing potential crash (or maybe its just the app waiting)?
Also, looking at intercom-ios repo, its at 18.4.0 but the react native version is using 18.2.0 per the release notes. Also, it does seem like there were some bugfixes on 18.2.2 patch version and I wonder if these would solve the problem. Would have been helpful if the changelogs had a bit more detail. Is anybody else running into this? Any solution for this issue. We are getting tons of the error messages from our exception tracking tool for last couple of days.
Thanks!