iOS SDK 10.0.3 (also reproduced in all next SDK versions), iOS 14+
I send a message that includes a deep link associated with app. The deep link opens normally by click on Intercom message notification, but I receive a crash when click the link on Intercom Messenger:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ICMPostViewController presentationContext]: unrecognized selector sent to instance 0x1194b6660'
The some rows from stack trace:
#6 0x00000001075cebc4 in -[ICMRootViewController closeIntercomModalWithCompletion:] at /Users/distiller/project/IntercomSDK/Classes/Presentation/Common/Windows/ICMRootViewController.m:368
#11 0x00000001873e2c98 in --NSNotificationCenter postNotificationName:object:userInfo:] ()
#12 0x00000001075784b8 in + ICMLinkOpener openCustomSchemeURL:] at /Users/distiller/project/IntercomSDK/Classes/Core/Link Handling/ICMLinkOpener.m:93
Could you help me to fix it?
Also I have a two different URL scheme for DEV and PROD applications. If I include two different URLs with both schemes, the Messenger opens a second (actually associated with another app) link, although the correct link does not open due to a crash. In other words, in development app associated with DEV schema URL causes crash, but PROD URL is opened in the production app. According to the documentation the PROD URL cannot be open:
"Linking to other apps is not supported with the iOS messenger. Your deep links must be for a scheme belonging to your app."
Is this behavior ok?