app.openLink does not detect external app deeplink handler on iOS

Deepak Dixit 5 Reputation points
2023-04-24T08:06:22.2966667+00:00

Hi All, I have one tab application (say MyApp) in MS Teams which is built using React and other related technology. There is a scenario when teams user on mobile device would like to jump to a related external app (say MyNativeApp) with help of app.openLink().

  • Scenario 1
    • Action: MyNativeApp is installed, calling app.openLink('myexternal_app://')
    • Output: User lands on MyNativeApp
    • Expectation: User should land on MyNativeApp
  • Scenario 2
    • Action:
    1. MyNativeApp is not installed, calling app.openLink('myexternal_app://') -> Promise is rejected with a similar message like "there is no handler available to open this link"
    2.   1. Now user is installing MyNativeApp and then trying #1 again, i.e calling **app.openLink('myexternal_app://**')
      
    • Output: it is still returning rejected promise with old message in iOS
    • Expectation: It should open MyNativeApp as handler is available now.

Can you check why app.openLink() is not working in above case only in iOS / iPhone ?
It is working on Android device and user lands on MyNativeApp correctly.

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,873 questions
{count} votes