MicrosoftDocs / msteams-docs

Source for the Microsoft Teams developer platform documentation.
https://aka.ms/teamsdev
Creative Commons Attribution 4.0 International
277 stars 501 forks source link

Deeplinks to tabs do not work on Android client #4028

Open astawkieliszek opened 2 years ago

astawkieliszek commented 2 years ago

Steps to reproduce

  1. Generate a sample tab application using Yeoman generator
  2. Run the application in localhost using ngrok
  3. Upload a custom app manifest using sideloading and add a tab to a channel
  4. Create a deeplink to the tab
  5. Deeplink works on Desktop, iOS devices. On Android devices the tab does not open without any error message.

Code used to generate a deeplink

const fallbackWebUrl = encodeURIComponent('https://example.com');
const encodedContext = encodeURIComponent(JSON.stringify({ channelId: teamsChannelId }));
const deeplink = 'https://teams.microsoft.com/l/entity/' +
     `${appId}/${entityId}?webUrl=${fallbackWebUrl}&context=${encodedContext}`;

Android client version

1416/1.0.0.2021114201/0809

The created deeplink works on Desktop and iOS devices. What is interesting, it was also working on the previous version of the Android Teams client (I don't know which version it was), after the update when clicking a deeplink there is no error message, the tab just does not open. Thank you for all your help!

ghost commented 2 years ago

Hi astawkieliszek! Thank you for bringing this issue to our attention. We will investigate and if we require further information we will reach out in one business day. Please use this link to escalate if you don't get replies.

Best regards, Teams Platform

Prithvi-MSFT commented 2 years ago

Hi, We were able to repro this issue. Seems like a bug, We have raised it with concerned team.

Thanks

SunilsingRana commented 2 years ago

Any update on this issue? I am also facing the same issue in latest version of MS Teams application Version: 1416/1.0.0.2021124202/0823

Meghana-MSFT commented 2 years ago

Team is looking into this. We do not have any ETA to share.

nbelyh commented 2 years ago

Would be great to have some update on this issue?

Meghana-MSFT commented 2 years ago

We are not able to reproduce the bug, could you please confirm if this issue is resolved, or you still have the repro?

nbelyh commented 2 years ago

@Meghana-MSFT I am not the topic starter, but I have checked as well (was facing the same issue) - now it seems to work fine. Checked in version: 1416/1.0.0.2022274402/0420

astawkieliszek commented 2 years ago

Hi! I can still reproduce the issue on version 1416/1.0.0.2022274402/0420:

  1. Create an application with a tab
  2. Create a deeplink to the tab like https://teams.microsoft.com/l/entity/${appId}/${entityId}?webUrl=${fallbackWebUrl}&context=${encodedContext}
  3. Compose a message with the link and post it into the channel
  4. Click the link

The link does not open on Android devices. It works on Desktop and iOS.

nbelyh commented 2 years ago

@astawkieliszek are you using sideloaded application? For me, it works only for the published application (installed from the teams store). If I try the same with sideloaded application it does not work. In particular that means it does not work locally (in debugger). But for me, this is okay, since the published version started working. CC: @Meghana-MSFT

Meghana-MSFT commented 2 years ago

We are also able to repro this issue in Android with message including the link. Attaching the video here of both web and Android. We are checking with the internal team as well.

https://user-images.githubusercontent.com/81138249/168052381-43f27a28-61f8-4747-9ab7-08e2c449741e.mp4

https://user-images.githubusercontent.com/81138249/168052391-36020b7a-bbb3-4c65-bb07-4c38e7df2984.mp4

cleferman commented 2 years ago

Hello! We've also hit this bug on Android. We've done some research on the latest MS Teams version as of now: 1416/1.0.0.2022304401/0608

We have some deep links in a static tab, which link to a configurable tab. Everything works fine on iOS and Desktop version

Android 9 & 10: It behaves like in the above video. We get redirected to the channel instead of our app.

Android 11 & 12: This is a little bit weird. When following the deep link we get the "Install app" screen. I blurred some info on the screen but you get the idea: image

EDIT:

The "Add an app" issue seems to be unrelated. It tries to deep link to a different app with the same name. It seems to be a caching issue. I tried Clearing Data & Cache on the mobile app but this issue persists. Anyhow, I'll open a different issue if it turns out it's a real problem.

Meghana-MSFT commented 2 years ago

@cleferman - Engineering team is looking into the issue. We will keep you posted on the updates.

ZsombiTech commented 1 year ago

@cleferman - Could you solve the problem? I am using Android 12 and I get the exact same error/issue you described...

cleferman commented 1 year ago

@ZsombiTech Which problem exactly? If it's the first one, deeplinking still doesn't work in the android app. The other issue I mentioned with "Install app" was caused by multiple versions of the same app.

ingmaramzan commented 1 year ago

Hi, has there been any update on this issue? I'm currently facing the same issue in Teams Android App Version: 1416/1.0.0.2022425002/1206. And contrary to @nbelyh my deeplink does not work even for my app which is a published application on appsource. The deeplink instead takes me to my application's chat bot.

Meghana-MSFT commented 1 year ago

@cleferman , @ingmaramzan - We created a deeplink to static tab and it navigated fine in Android device. Can you please let us know how you are trying this as the engineering team is also unable to reproduce the issue currently.

ghost commented 1 year ago

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 3 days. It will be closed if no further activity occurs within 3 days of this comment.

cleferman commented 1 year ago

@Meghana-MSFT the issue still reproduces on Android 12 at least. Didn't manage to test on other versions yet.

@cleferman , @ingmaramzan - We created a deeplink to static tab and it navigated fine in Android device. Can you please let us know how you are trying this as the engineering team is also unable to reproduce the issue currently.

I think you misunderstood the use case (or at least my use case). We don't try to deeplink to a static tab but rather deeplink from a static tab to a configurable tab.

The scenario is as follows:

To reiterate on my first post, at the moment when we're trying to follow the deeplink on Android 12 it redirects the user to the app install screen.

Meghana-MSFT commented 1 year ago

@cleferman - We will check again and get back to you.