Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Download PDF in Teams Mobile App #10780

Open
Yugandhar159 opened this issue Apr 25, 2024 · 8 comments
Open

Unable to Download PDF in Teams Mobile App #10780

Yugandhar159 opened this issue Apr 25, 2024 · 8 comments
Assignees
Labels
bug needs-triage 🔍 teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label

Comments

@Yugandhar159
Copy link

Yugandhar159 commented Apr 25, 2024

Steps to reproduce

We are unable to download PDF file in Teams Mobile APP in Android and IOS however it's working fine in Teams Web and Desktop.
We are using Personal Tab APP and trying to download the file instead of downloading it's open preview of file without a possibility to save it kindly help me on this issue

Expected behavior

It should download file same like web and desktop

Actual behavior

It should download file same like web and desktop

Error details

No response

Tasks

No tasks being tracked yet.
@Prasad-MSFT
Copy link
Collaborator

Hi @Yugandhar159 - Thanks for raising your query. Could you please share any repro video/ repro steps so that we can try this from our side? Additionally, it would be great if you share any deployed App manifest.

@Prasad-MSFT Prasad-MSFT added the needs-author-feedback Needs more info from the customer. label Apr 26, 2024
@Yugandhar159
Copy link
Author

{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.14/MicrosoftTeams.schema.json",
"manifestVersion": "1.14",
"version": "1.0.0",
"id": "ID",
"packageName": "projectName.teams",
"publisherDocsUrl": "https://www.url.com",
"developer": {
"name": "sample",
"websiteUrl": "sample",
"privacyUrl": "URL",
"termsOfUseUrl": "URL"
},
"icons": {
"color": "resources/color.png",
"outline": "resources/outline.png"
},
"name": {
"short": "Project Name",
"full": "A Teams bot"
},
"description": {
"short": "Short description",
"full": "sample"
},
"accentColor": "#FFFFFF",
"composeExtensions": [],
"staticTabs": [
{
"entityId": "index0",
"name": "Tab1",
"contentUrl": "url1",
"websiteUrl": "url2",
"scopes": [
"personal"
]
},
{
"entityId": "index1",
"name": "Tab2",
"contentUrl": "url1",
"websiteUrl": "url2",
"scopes": [
"personal"
]
},
{
"entityId": "index2",
"name": "Tab3",
"contentUrl": "url1",
"websiteUrl": "url2",
"scopes": [
"personal"
]
}
],
"permissions": [
"identity",
"messageTeamMembers"
],
"validDomains": [
"DOMAIN"
],
"webApplicationInfo": {
"id": "${{APP_ID}}",
"resource": "api://URL"
}
}

@Prasad-MSFT Please find the Sample Manifest file and Unable to provide the Video due to security concern ideally file is not downloading in Mobile PDF content is directly displaying unable to close it

@microsoft-github-policy-service microsoft-github-policy-service bot added needs-attention and removed needs-author-feedback Needs more info from the customer. labels Apr 29, 2024
@Prasad-MSFT Prasad-MSFT added teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label and removed needs-attention labels Apr 29, 2024
@Prasad-MSFT
Copy link
Collaborator

Hi @Yugandhar159 - Thanks for sharing the sample manifest. However, we need more details such as sample code used and repro steps to investigate further.

@Yugandhar159
Copy link
Author

@Prasad-MSFT
We are using simple download on click on button i will call API and Down load File

code snippet for download
let contentType = 'application/json;charset=utf-8;';
var a = document.createElement('a');
a.download = filename;
a.href = 'data:' + contentType + ',' + encodeURIComponent(JSON.stringify(objectData));
a.target = '_blank';
document.body.appendChild(a);
a.click();
document.body.removeChild(a);

@Prasad-MSFT
Copy link
Collaborator

We checked using this sample. (https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/meeting-recruitment-app/csharp) The file download functionality works fine in Teams Desktop/Web client. However, when we checked in mobile client (Android) it shows below error:
image

Could you please check with the deployed demo manifest and let us know if you are also facing the same?

@Yugandhar159
Copy link
Author

Yes we are also facing the same issue

@Prasad-MSFT Prasad-MSFT added bug and removed needs-author-feedback Needs more info from the customer. labels May 9, 2024
@Prasad-MSFT
Copy link
Collaborator

Prasad-MSFT commented May 9, 2024

@Yugandhar159 - Thanks for confirming. We have raised a bug for this issue.
We will inform you once we get any further update from engineering team.

Could you please share your valuable feedback via Microsoft Teams Developer Community Response Feedback link?

Copy link
Contributor

Hi Yugandhar159! 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs-triage 🔍 teams-developer-support Question related to extensibility (Bot, ME, Tab) would be marked under this label
Projects
None yet
Development

No branches or pull requests

4 participants