Skip to main content

In our app, when I type a link in the intercom chat (https://example.com/list), it opens in the Safari browser. However, when the same link is triggered from a notification or from another app like WhatsApp or Messages, it works fine.

Based on the article about deep linking (https://developers.intercom.com/installing-intercom/ios/deep-linking/), I added the following configuration:

<key>IntercomUniversalLinkDomains</key>
<array>
    <string>example.com</string>
    <string>https://example.com/help</string>
    <string>https://www.example.com/help</string>
    <string>https://example.com</string>
    <string>https://www.example.com</string>
</array>

Additionally, in my AppDelegate I have implemented:

func application(_ application: UIApplication,
                 continue userActivity: NSUserActivity,
                 restorationHandler: @escaping (sUIUserActivityRestoring]?) -> Void) -> Bool {
    print("breakpoint here!")
    return true
}

However, this does not seem to work, as the console never prints "breakpoint here!" when I tap on the link.

Intercom version: 17.4.0

My issue was that Firebase was overriding the continueUserActivity call with its own inside GLUAppDelegateSwizzler.m. I resolved it by adding the following entry to the Info.plist file:

<key>FirebaseAppDelegateProxyEnabled</key>
<false/>

Reply