A crash on Chat.instance?.resetIdentity(), iOS App | Community
Skip to main content

A crash on Chat.instance?.resetIdentity(), iOS App

  • March 12, 2024
  • 0 replies
  • 0 views

Hi, 

We are getting a crash when we call `resetIdentity` after users log out. We cannot reproduce this in test, but our tens of our production users are getting crashes because this error. 
Do you have any idea why might that be?

 


Crashed: com.apple.NSURLSession-delegate
0  libswiftCore.dylib             0x3fff78 swift_isUniquelyReferenced_nonNull_native + 38
1  ChatProvidersSDK               0x16d30 specialized Observable.addObserver<A>(_:identifier:eagerObserver:onRemove:_:) + 74 (Observer.swift:74)
2  ChatProvidersSDK               0x93544 ChatSession.observeConnectionStatus() + 391 (ChatConnection.swift:391)
3  ChatProvidersSDK               0x93148 ChatSession.connect() + 280 (ChatSession.swift:280)
4  ChatProvidersSDK               0x6e14 SessionConfigurator.connect() + 187 (SessionConfigurator.swift:187)
5  ChatProvidersSDK               0x113654 ChatSessionMediator.resetIdentity(_:) + 275 (ChatSessionMediator.swift:275)
6  ChatProvidersSDK               0x9eea8 Chat.resetIdentity(_:) + 210 (Chat.swift:210)