Skip to main content
Answered

Universal link keeps opening in safari from chat

  • February 14, 2025
  • 1 reply
  • 44 views

  • New Participant
  • 1 reply

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 ([UIUserActivityRestoring]?) -> 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

Best answer by Nitin

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/>
View original
Did this topic help you find an answer to your question?

1 reply

  • Author
  • New Participant
  • 1 reply
  • Answer
  • February 18, 2025

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/>

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings