OfficeDev / microsoft-teams-library-js

JavaScript library for use by Microsoft Teams apps
https://docs.microsoft.com/microsoftteams/platform/
Other
426 stars 194 forks source link

[New Teams Client] Download is not working when opening a link in Tab app #2468

Open kafka-yu opened 1 month ago

kafka-yu commented 1 month ago

Hi team,

We have an issue regarding the download feature in our Tab app.

Context: We have a URL for a WAV file downloading in our Tab app. It is placed at a element. This URL depends on cookies to do authorization on the backend side. The cookies are produced in our Tab after account logged in.

It works fine in the classic Teams client.

But it is not working when opening this URL in the new Teams Client. From what we checked it seems that the new Teams client handles the URL in a new window (or session or something), and the cookie produced in our main tab cannot be used.

Can someone help to investigate?

Thanks

Meghana-MSFT commented 4 weeks ago

@kafka-yu - Could you please provide the repro steps or minimal code snippet/reference doc which you followed. Please share repro video as well.

kafka-yu commented 3 weeks ago

@Meghana-MSFT Ok. I'll try to build one.

kafka-yu commented 3 weeks ago

hi @Meghana-MSFT pls check out this repo https://github.com/kafka-yu/teams-simple-download/tree/main

Meghana-MSFT commented 3 weeks ago

@kafka-yu - This issue seems similar to the one reported here https://github.com/MicrosoftDocs/msteams-docs/issues/10342. We already have a bug raised for this issue.

kafka-yu commented 3 weeks ago

Thanks for sharing that! @Meghana-MSFT