Answered

[SDK] [iOS] [Objective-C] [Crash] Intercom 12 crashes

  • 16 June 2023
  • 2 replies
  • 149 views

Hello, I have a problem with Intercom 12 and 15.

I have a problem under certain conditions when using the Intercom iOS SDK: when I try to open a conversation from the Intercom conversation list, the application starts crashing with an error.

I updated the SDK version to 15 and it crashed with the same error.

The application is launching the messenger with `[Intercom presentMessageComposer:@""]`.

 

Are you aware of these problems and can you suggest a solution?

 

Xcode version 14.3 (Objective-C)

Intercom iOS SDK version 12.4.3 / 15.0.0

 

↓Crashing pattern

iPhone Xs iOS version 16.5

iPhone 12 iOS version 16.5

 

↓Patterns that do not crash

iPhone 7 iOS version 15.0

iPhone Xr iOS version 16.3.1

iPhone 12 mini iOS version 15.4.1

 

Errors:

Fatal Exception: NSInternalInconsistencyException Invalid batch updates detected: the number of sections and/or items returned by the data source before and/or after performing the batch updates are Data source before updates = { 1 section with item counts: [1] } Data source after updates = { 1 section with item counts: [1] } Updates = [ Insert item (0 - 0) ] Collection view: <Intercom.TouchTransparentCollectionView: 0x1071a1600; baseClass = UICollectionView; frame = (- 375 0; 375 758); transform = [1, 0, 0, 1, -375, 0]; clipsToBounds = YES; alpha = 0; gestureRecognizers = <NSArray: 0x281c723d0>; backgroundColor = UIExtendedGrayColorSpace 0 0; layer = <CALayer: 0x280a0f860>; contentOffset: {0, -56}; contentSize: {375, 371}; adjustedContentInset: {56, 0, 34, 0 }; layout: <ICMHomescreenFlowLayout: 0x10563c930>; dataSource: <ICMHomescreenViewController: 0x106107400>>

icon

Best answer by cameron.gumley 23 June 2023, 01:54

View original

2 replies

Userlevel 2
Badge +3

Hi @YoujiKawaguchi -- Cam from the Intercom Support Engineering team here 🔧

Thanks for flagging this with us! This isn’t an error I’ve come across before so let me touch base with some specialist teammates and our Product Engineering team to see what insights they may be able to provide. 

I’ll touch base with you here as soon as I have an update 👍

Userlevel 2
Badge +3

Quick update for you @YoujiKawaguchi😁

Myself and our team are keen to discuss this issue a bit further with you so we can get a more detailed understand of what is happening here and identify the best potential solution. 

I have opened a new chat conversation on your behalf with our Customer Support team using forum ticket escalation feature - I’ve included the details you’ve provided so far on this and will chat with you more over there.

Reply