sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Bug retrieving token in Teams personal App

Open MarianoPrz opened this issue 2 years ago • 5 comments

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

No response

What browser(s) / client(s) have you tested

  • [ ] 💥 Internet Explorer
  • [ ] 💥 Microsoft Edge
  • [ ] 💥 Google Chrome
  • [ ] 💥 FireFox
  • [ ] 💥 Safari
  • [X] mobile (iOS/iPadOS)
  • [X] mobile (Android)
  • [ ] not applicable
  • [ ] other (enter in the "Additional environment details" area below)

Additional environment details

Teams mobile client on IOS and Sharepoint iOS app SPFx 1.14 Node 14.18.3

Describe the bug / error

Related to #7646 still in teams app (in my case a personal app, with statics tabs) at mobile, time to time crashes at get token. In the related issue, that was closed prematured, Teams Mobile dev team were working on it, we have a date to fix this issue?

Thanks in advance.

Steps to reproduce

same as #7646

Expected behavior

same as #7646

MarianoPrz avatar Jul 18 '22 20:07 MarianoPrz

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Jul 18 '22 20:07 ghost

@MarianoPrz , thanks for reporting this. Can you please tell us the version of the Teams app you are using in the iOS device?

lucabandMSFT avatar Jul 20 '22 03:07 lucabandMSFT

@lucabandMSFT
teams app version

MarianoPrz avatar Jul 20 '22 17:07 MarianoPrz

hey @MarianoPrz , the fix is indeed rolled 100%. Can you please paste here the Teams manifest?

lucabandMSFT avatar Jul 21 '22 18:07 lucabandMSFT

Hi @lucabandMSFT sorry for the delay, in one of our tenants still ocurrying (randomly): image

Here the Teams manifest:

{
    "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.11/MicrosoftTeams.schema.json",
    "manifestVersion": "1.11",
    "packageName": "CollaborationGovernance",
    "id": "{{state.fx-resource-appstudio.teamsAppId}}",
    "localizationInfo": {
        "defaultLanguageTag": "es-es",
        "additionalLanguages": [
            {
                "languageTag": "en-us",
                "file": "en-us.json"
            }
        ]
    },
    "version": "1.0.17",
    "developer": {
        "name": "Raona",
        "websiteUrl": "https://raona.com",
        "privacyUrl": "https://raona.com",
        "termsOfUseUrl": "https://raona.com"
    },
    "name": {
        "short": "{{config.manifest.appName.short}}",
        "full": "{{config.manifest.appName.full}}"
    },
    "description": {
        "short": "Colabora estés donde estés con Raona, estamos más cerca de ti.",
        "full": "Smart Hub te facilita la comunicación y colaboración transversal entre diferentes equipos. Te permite colaborar de forma estructurada y ágil en base a diferentes plantillas (gestión de proyectos, áreas de conocimiento e interés, Steering Committee ejecutivo y repositorio de compartición documental). Adicionalmente te permite fomentar la interacción con tus compañer@s en el transcurso de toda colaboración.  Desde un espacio único te permite conectar con todos tus colaboradores, ya sean internos y/o externos, y colaborar con ellos de un modo:\n        + productivo\n        + eficiente\n        + colaborativo\n        + divertido\n        \n        ¡El futuro de la colaboración está aquí!"
    },
    "icons": {
        "outline": "resources/Active Small.png",
        "color": "resources/Active Large_Background.png"
    },
    "accentColor": "#004578",
    "staticTabs": [
        {
            "entityId": "eami-my-spaces",
            "name": "Mis Espacios",
            "contentUrl": "{{^config.isLocalDebug}}https://{teamSiteDomain}/_layouts/15/TeamsLogon.aspx?SPFX=true&dest=/_layouts/15/teamshostedapp.aspx%3Fteams%26personal%26componentId=256dc0f0-6b5f-4cb0-8c68-46f2ed73fb31%26forceLocale={locale}{{/config.isLocalDebug}}{{#config.isLocalDebug}}https://{teamSiteDomain}/_layouts/15/TeamsLogon.aspx?SPFX=true&dest={teamSitePath}/_layouts/15/TeamsWorkBench.aspx%3FcomponentId=256dc0f0-6b5f-4cb0-8c68-46f2ed73fb31%26teams%26personal%26forceLocale={locale}%26loadSPFX%3Dtrue%26debugManifestsFile%3Dhttps%3A%2F%2Flocalhost%3A4321%2Ftemp%2Fmanifests.js{{/config.isLocalDebug}}",
            "websiteUrl": "https://www.raona.com/",
            "scopes": [
                "personal"
            ]
        },
        {
            "entityId": "eami-my-archives",
            "name": "Mis Archivados",
            "contentUrl": "{{^config.isLocalDebug}}https://{teamSiteDomain}/_layouts/15/TeamsLogon.aspx?SPFX=true&dest=/_layouts/15/teamshostedapp.aspx%3Fteams%26personal%26componentId=6e6dff9b-0270-4323-8684-77385da9d7b2%26forceLocale={locale}{{/config.isLocalDebug}}{{#config.isLocalDebug}}https://{teamSiteDomain}/_layouts/15/TeamsLogon.aspx?SPFX=true&dest={teamSitePath}/_layouts/15/TeamsWorkBench.aspx%3FcomponentId=6e6dff9b-0270-4323-8684-77385da9d7b2%26teams%26personal%26forceLocale={locale}%26loadSPFX%3Dtrue%26debugManifestsFile%3Dhttps%3A%2F%2Flocalhost%3A4321%2Ftemp%2Fmanifests.js{{/config.isLocalDebug}}",
            "websiteUrl": "https://www.raona.com/",
            "scopes": [
                "personal"
            ]
        },
        {
            "entityId": "eami-new-space",
            "name": "Nuevo Espacio",
            "contentUrl": "{{^config.isLocalDebug}}https://{teamSiteDomain}/_layouts/15/TeamsLogon.aspx?SPFX=true&dest=/_layouts/15/teamshostedapp.aspx%3Fteams%26personal%26componentId=14a4619d-ca50-4bd2-951f-776f6f51826b%26forceLocale={locale}{{/config.isLocalDebug}}{{#config.isLocalDebug}}https://{teamSiteDomain}/_layouts/15/TeamsLogon.aspx?SPFX=true&dest={teamSitePath}/_layouts/15/TeamsWorkBench.aspx%3FcomponentId=14a4619d-ca50-4bd2-951f-776f6f51826b%26teams%26personal%26forceLocale={locale}%26loadSPFX%3Dtrue%26debugManifestsFile%3Dhttps%3A%2F%2Flocalhost%3A4321%2Ftemp%2Fmanifests.js{{/config.isLocalDebug}}",
            "websiteUrl": "https://www.raona.com/",
            "scopes": [
                "personal"
            ]
        }
    ],
    "permissions": [
        "identity",
        "messageTeamMembers"
    ],
    "validDomains": [
        "*.login.microsoftonline.com",
        "*.sharepoint.com",
        "*.sharepoint-df.com",
        "spoppe-a.akamaihd.net",
        "spoprod-a.akamaihd.net",
        "resourceseng.blob.core.windows.net",
        "msft.spoppe.com"
    ],
    "webApplicationInfo": {
        "resource": "https://{teamSiteDomain}",
        "id": "d5d3c9bc-d67c-4247-8b95-d2a253ba1a17",
        "applicationPermissions": [
            "TeamsActivity.Send.Group",
            "Microsoft.Teams.GraphSvc.sendActivityNotification"
        ]
    },
    "activities": {
        "activityTypes": [
            {
                "type": "CollaborationSpaceCreated",
                "description": "Se ha creado un nuevo espacio",
                "templateText": "Se ha creado el espacio {spaceName}"
            },
            {
                "type": "CollaborationSpaceRejected",
                "description": "Se ha rechazado la petición para la creación del espacio",
                "templateText": "Se ha rechazado el espacio {spaceName}"
            },
            {
                "type": "CollaborationSpaceCancelled",
                "description": "Se ha cancelado la petición para la creación del espacio",
                "templateText": "Se ha cancelado el espacio {spaceName}"
            },
            {
                "type": "CollaborationSpaceError",
                "description": "Ha habido un error en la creación del espacio",
                "templateText": "Error en el espacio {spaceName}"
            },
            {
                "type": "CollaborationSpaceArchived",
                "description": "Se ha archivado el espacio",
                "templateText": "Se ha archivado el espacio {spaceName}"
            },
            {
                "type": "CollaborationSpaceNearExpiration",
                "description": "El espacio está a punto de caducar",
                "templateText": "{spaceName} está a punto de caducar"
            },
            {
                "type": "CollaborationActionDone",
                "description": "Se ha ejecutado una acción",
                "templateText": "Ha finalizado la acción {actionName}"
            },
            {
                "type": "CollaborationActionError",
                "description": "Se ha ejecutado una acción",
                "templateText": "Error sobre la acción {actionName}"
            },
            {
                "type": "CollaborationActionCancelled",
                "description": "Se ha ejecutado una acción",
                "templateText": "Se ha cancelado la acción {actionName}"
            },
            {
                "type": "CollaborationActionRejected",
                "description": "Se ha ejecutado una acción",
                "templateText": "Se ha rechazado la acción {actionName}"
            }
        ]
    }
}

Here the AAD app registration manifest:

{
	"id": "a1d16f9c-9d95-4b50-acf9-c1a66ce1e10e",
	"acceptMappedClaims": null,
	"accessTokenAcceptedVersion": 1,
	"addIns": [],
	"allowPublicClient": true,
	"appId": "d5d3c9bc-d67c-4247-8b95-d2a253ba1a17",
	"appRoles": [
		{
			"allowedMemberTypes": [
				"User"
			],
			"description": "Allow admin users to view log for creation spaces",
			"displayName": "SmarthHub Admin",
			"id": "44523b66-099c-4c37-a746-3a3f4fb3e3e5",
			"isEnabled": true,
			"lang": null,
			"origin": "Application",
			"value": "Collaboration.Admin"
		}
	],
	"oauth2AllowUrlPathMatching": false,
	"createdDateTime": "2022-05-04T07:20:47Z",
	"description": null,
	"certification": null,
	"disabledByMicrosoftStatus": null,
	"groupMembershipClaims": "None",
	"identifierUris": [
		"api://d5d3c9bc-d67c-4247-8b95-d2a253ba1a17"
	],
	"informationalUrls": {
		"termsOfService": null,
		"support": null,
		"privacy": null,
		"marketing": null
	},
	"keyCredentials": [],
	"knownClientApplications": [],
	"logoUrl": "https://aadcdn.msftauthimages.net/c1c6b6c8-i3hhectzw6scmbudomlrebfdwojdt1k-owm6fjicgyo/appbranding/t38fw-opdkhiojmeevrejre6mutsj5jvohrb43zk2h0/1033/bannerlogo?ts=637895875727230324",
	"logoutUrl": null,
	"name": "SmartHub",
	"notes": null,
	"oauth2AllowIdTokenImplicitFlow": true,
	"oauth2AllowImplicitFlow": true,
	"oauth2Permissions": [
		{
			"adminConsentDescription": "user_impersonation",
			"adminConsentDisplayName": "user_impersonation",
			"id": "6530deb6-f439-4980-adae-b6b386d347d2",
			"isEnabled": true,
			"lang": null,
			"origin": "Application",
			"type": "User",
			"userConsentDescription": null,
			"userConsentDisplayName": null,
			"value": "user_impersonation"
		}
	],
	"oauth2RequirePostResponse": false,
	"optionalClaims": null,
	"orgRestrictions": [],
	"parentalControlSettings": {
		"countriesBlockedForMinors": [],
		"legalAgeGroupRule": "Allow"
	},
	"passwordCredentials": [
		{
			"customKeyIdentifier": null,
			"endDate": "2022-12-17T16:38:10.411Z",
			"keyId": "6c2b7a09-06a0-40bd-895a-97b8a503423f",
			"startDate": "2022-06-17T15:38:10.411Z",
			"value": null,
			"createdOn": "2022-06-17T15:38:15.6707346Z",
			"hint": "~bS",
			"displayName": "flow"
		},
		{
			"customKeyIdentifier": null,
			"endDate": "2024-05-19T13:32:11.744Z",
			"keyId": "04afd5a3-1bea-470d-8cce-9c7c0931bf0d",
			"startDate": "2022-05-19T13:32:11.744Z",
			"value": null,
			"createdOn": "2022-05-19T13:32:26.9067886Z",
			"hint": "xCt",
			"displayName": "SendNotify"
		},
		{
			"customKeyIdentifier": null,
			"endDate": "2032-05-09T19:34:44.27Z",
			"keyId": "f4b49d2d-5da1-4b66-aea3-778f2e0d2a48",
			"startDate": "2022-05-09T19:34:44.27Z",
			"value": null,
			"createdOn": "2022-05-09T19:34:44.5762096Z",
			"hint": "Nlf",
			"displayName": "Generated by App Service"
		}
	],
	"preAuthorizedApplications": [],
	"publisherDomain": "raonasn.onmicrosoft.com",
	"replyUrlsWithType": [
		{
			"url": "https://app-eami-collaboration.azurewebsites.net/.auth/login/aad/callback",
			"type": "Web"
		},
		{
			"url": "https://raonasn.sharepoint.com",
			"type": "Web"
		},
		{
			"url": "https://app-eami-collaboration.azurewebsites.net/swagger/oauth2-redirect.html",
			"type": "Web"
		},
		{
			"url": "https://localhost:7237/swagger/oauth2-redirect.html",
			"type": "Web"
		}
	],
	"requiredResourceAccess": [
		{
			"resourceAppId": "00000003-0000-0000-c000-000000000000",
			"resourceAccess": [
				{
					"id": "14dad69e-099b-42c9-810b-d002981feec1",
					"type": "Scope"
				},
				{
					"id": "7427e0e9-2fba-42fe-b0c0-848c9e6a8182",
					"type": "Scope"
				},
				{
					"id": "e1fe6dd8-ba31-4d61-89e7-88639da4683d",
					"type": "Scope"
				},
				{
					"id": "a154be20-db9c-4678-8ab7-66f6cc099a59",
					"type": "Scope"
				},
				{
					"id": "4e46008b-f24c-477d-8fff-7bb4ec7aafe0",
					"type": "Scope"
				},
				{
					"id": "37f7f235-527c-4136-accd-4a02d197296e",
					"type": "Scope"
				},
				{
					"id": "64a6cdd6-aab1-4aaf-94b8-3cc8405e90d0",
					"type": "Scope"
				},
				{
					"id": "4a06efd2-f825-4e34-813e-82a57b03d1ee",
					"type": "Scope"
				},
				{
					"id": "62a82d76-70ea-41e2-9197-370581804d09",
					"type": "Role"
				},
				{
					"id": "a267235f-af13-44dc-8385-c1dc93023186",
					"type": "Role"
				},
				{
					"id": "3aeca27b-ee3a-4c2b-8ded-80376e2134a4",
					"type": "Role"
				},
				{
					"id": "09850681-111b-4a89-9bed-3f2cae46d706",
					"type": "Role"
				},
				{
					"id": "df021288-bdef-4463-88db-98f22de89214",
					"type": "Role"
				},
				{
					"id": "dbaae8cf-10b5-4b86-a4a1-f871c94c6695",
					"type": "Role"
				},
				{
					"id": "bf7b1a76-6e77-406b-b258-bf5c7720e98f",
					"type": "Role"
				},
				{
					"id": "0c458cef-11f3-48c2-a568-c66751c238c0",
					"type": "Role"
				},
				{
					"id": "a82116e5-55eb-4c41-a434-62fe8a61c773",
					"type": "Role"
				},
				{
					"id": "0c0bf378-bf22-4481-8f81-9e89a9b4960a",
					"type": "Role"
				},
				{
					"id": "f3a65bd4-b703-46df-8f7e-0174fea562aa",
					"type": "Role"
				},
				{
					"id": "0121dc95-1b9f-4aed-8bac-58c5ac466691",
					"type": "Role"
				},
				{
					"id": "35930dcf-aceb-4bd1-b99a-8ffed403c974",
					"type": "Role"
				},
				{
					"id": "5dad17ba-f6cc-4954-a5a2-a0dcc95154f0",
					"type": "Role"
				},
				{
					"id": "23fc2474-f741-46ce-8465-674744c5c361",
					"type": "Role"
				},
				{
					"id": "f12eb8d6-28e3-46e6-b2c0-b7e4dc69fc95",
					"type": "Role"
				},
				{
					"id": "6163d4f4-fbf8-43da-a7b4-060fe85ed148",
					"type": "Role"
				}
			]
		},
		{
			"resourceAppId": "00000003-0000-0ff1-ce00-000000000000",
			"resourceAccess": [
				{
					"id": "c8e3537c-ec53-43b9-bed3-b2bd3617ae97",
					"type": "Role"
				},
				{
					"id": "678536fe-1083-478a-9c59-b99265e6b0d3",
					"type": "Role"
				}
			]
		}
	],
	"samlMetadataUrl": null,
	"signInUrl": null,
	"signInAudience": "AzureADMyOrg",
	"tags": [],
	"tokenEncryptionKeyId": null
}

MarianoPrz avatar Jul 25 '22 13:07 MarianoPrz

@MarianoPrz , thanks and sorry for my delay in replying back.

can you please paste the AAD manifest of the "SharePoint Online Client Extensibility Web Application Principal" object in AAD?

Also, does the error occurs constantly or sort of randomly (like it works for a while and then it doesn't work and then, maybe, the user logs in to SharePoint in the browser and works back)?

thanks

lucabandMSFT avatar Aug 23 '22 16:08 lucabandMSFT

Hi @lucabandMSFT, i've pasted it above i think, just below the Teams manifest what you asked me. It's occurs randomly for a while hours or even a day, and then works again. That the user logs into SharePoint doesn't make it work again. Thanks.

MarianoPrz avatar Aug 28 '22 22:08 MarianoPrz

Hi @MarianoPrz the Here the AAD app registration manifest you pasted there seems to come from your custom API in AAD not the SharePoint one. Do I read it wrongly?

Thanks

lucabandMSFT avatar Aug 30 '22 00:08 lucabandMSFT

@lucabandMSFT you're right, sorry, here it is:

{
	"id": "cf328f68-1cff-4bd4-9395-61d0aba73b8d",
	"acceptMappedClaims": null,
	"accessTokenAcceptedVersion": 1,
	"addIns": [],
	"allowPublicClient": null,
	"appId": "2d723a34-79a5-48ff-b5f3-d2361a7038b4",
	"appRoles": [],
	"oauth2AllowUrlPathMatching": false,
	"createdDateTime": "2018-12-11T18:30:15Z",
	"description": null,
	"certification": null,
	"disabledByMicrosoftStatus": null,
	"groupMembershipClaims": null,
	"identifierUris": [
		"api://6595da4a-2977-4b36-8638-af9cf4425c02/microsoft.spfx3rdparty.com"
	],
	"informationalUrls": {
		"termsOfService": null,
		"support": null,
		"privacy": null,
		"marketing": null
	},
	"keyCredentials": [],
	"knownClientApplications": [],
	"logoUrl": null,
	"logoutUrl": null,
	"name": "SharePoint Online Client Extensibility Web Application Principal",
	"notes": null,
	"oauth2AllowIdTokenImplicitFlow": true,
	"oauth2AllowImplicitFlow": true,
	"oauth2Permissions": [
		{
			"adminConsentDescription": "Allow the application to access SharePoint Online Client Extensibility Web Application Principal on behalf of the signed-in user.",
			"adminConsentDisplayName": "Access SharePoint Online Client Extensibility Web Application Principal",
			"id": "f3959f26-6f61-4a13-bed0-9a07081f0124",
			"isEnabled": true,
			"lang": null,
			"origin": "Application",
			"type": "User",
			"userConsentDescription": "Allow the application to access SharePoint Online Client Extensibility Web Application Principal on your behalf.",
			"userConsentDisplayName": "Access SharePoint Online Client Extensibility Web Application Principal",
			"value": "user_impersonation"
		}
	],
	"oauth2RequirePostResponse": false,
	"optionalClaims": null,
	"orgRestrictions": [],
	"parentalControlSettings": {
		"countriesBlockedForMinors": [],
		"legalAgeGroupRule": "Allow"
	},
	"passwordCredentials": [
		{
			"customKeyIdentifier": "Omfdtx4JMUaXi7TJYHVlaQ==",
			"endDate": "2072-05-10T09:45:47.6977964Z",
			"keyId": "4247e551-9d35-468c-9385-675e1a27f171",
			"startDate": "2022-05-10T09:45:47.6977964Z",
			"value": null,
			"createdOn": null,
			"hint": null,
			"displayName": null
		}
	],
	"preAuthorizedApplications": [
		{
			"appId": "1fec8e78-bce4-4aaf-ab1b-5451cc387264",
			"permissionIds": [
				"f3959f26-6f61-4a13-bed0-9a07081f0124"
			]
		},
		{
			"appId": "08e18876-6177-487e-b8b5-cf950c1e598c",
			"permissionIds": [
				"f3959f26-6f61-4a13-bed0-9a07081f0124"
			]
		},
		{
			"appId": "00000003-0000-0ff1-ce00-000000000000",
			"permissionIds": [
				"f3959f26-6f61-4a13-bed0-9a07081f0124"
			]
		}
	],
	"publisherDomain": "raonasn.onmicrosoft.com",
	"replyUrlsWithType": [
		{
			"url": "https://raonasn-admin.sharepoint.com/_forms/spfxsinglesignon.aspx",
			"type": "Web"
		},
		{
			"url": "https://raonasn.sharepoint.com/_forms/spfxsinglesignon.aspx?redirect",
			"type": "Web"
		},
		{
			"url": "https://raonasn.sharepoint.com/_forms/spfxsinglesignon.aspx",
			"type": "Web"
		},
		{
			"url": "https://raonasn.sharepoint.com/_forms/singlesignon.aspx?redirect",
			"type": "Web"
		},
		{
			"url": "https://raonasn.sharepoint.com/_forms/singlesignon.aspx",
			"type": "Web"
		},
		{
			"url": "https://raonasn.sharepoint.com/",
			"type": "Web"
		},
		{
			"url": "https://dev.fluidpreview.office.net/spfxsinglesignon",
			"type": "Web"
		},
		{
			"url": "https://fluidpreview.office.net/spfxsinglesignon",
			"type": "Web"
		}
	],
	"requiredResourceAccess": [
		{
			"resourceAppId": "62058094-297b-495d-9f87-59ac1c058504",
			"resourceAccess": [
				{
					"id": "006177d2-d5e0-4e5d-b43b-cbd3a1e22e2c",
					"type": "Scope"
				}
			]
		},
		{
			"resourceAppId": "00000003-0000-0000-c000-000000000000",
			"resourceAccess": [
				{
					"id": "570282fd-fa5c-430d-a7fd-fc8dc98a9dca",
					"type": "Scope"
				},
				{
					"id": "5c28f0bf-8a70-41f1-8ab2-9032436ddb65",
					"type": "Scope"
				},
				{
					"id": "205e70e5-aba6-4c52-a976-6d2d46c48043",
					"type": "Scope"
				},
				{
					"id": "89fe6a52-be36-487e-b7d8-d061c450a026",
					"type": "Scope"
				},
				{
					"id": "b340eb25-3456-403f-be2f-af7a0d370277",
					"type": "Scope"
				},
				{
					"id": "b89f9189-71a5-4e70-b041-9887f0bc7e4a",
					"type": "Scope"
				},
				{
					"id": "e1fe6dd8-ba31-4d61-89e7-88639da4683d",
					"type": "Scope"
				},
				{
					"id": "ba47897c-39ec-4d83-8086-ee8256fa737d",
					"type": "Scope"
				},
				{
					"id": "ff74d97f-43af-4b68-9f2a-b77ee6968c5d",
					"type": "Scope"
				},
				{
					"id": "465a38f9-76ea-45b9-9f34-9e8b0d4b0b42",
					"type": "Scope"
				},
				{
					"id": "922f9392-b1b7-483c-a4be-0089be7704fb",
					"type": "Scope"
				},
				{
					"id": "b4e74841-8e56-480b-be8b-910348b18b4c",
					"type": "Scope"
				},
				{
					"id": "65e50fdc-43b7-4915-933e-e8138f11f40a",
					"type": "Scope"
				},
				{
					"id": "65e50fdc-43b7-4915-933e-e8138f11f40a",
					"type": "Scope"
				},
				{
					"id": "297f747b-0005-475b-8fef-c890f5152b38",
					"type": "Scope"
				},
				{
					"id": "6c37c71d-f50f-4bff-8fd3-8a41da390140",
					"type": "Scope"
				},
				{
					"id": "9c7a330d-35b3-4aa1-963d-cb2b9f927841",
					"type": "Scope"
				},
				{
					"id": "76bc735e-aecd-4a1d-8b4c-2b915deabb79",
					"type": "Scope"
				}
			]
		},
		{
			"resourceAppId": "d5d3c9bc-d67c-4247-8b95-d2a253ba1a17",
			"resourceAccess": [
				{
					"id": "6530deb6-f439-4980-adae-b6b386d347d2",
					"type": "Scope"
				}
			]
		}
	],
	"samlMetadataUrl": null,
	"signInUrl": null,
	"signInAudience": "AzureADMyOrg",
	"tags": [],
	"tokenEncryptionKeyId": null
}

thanks in advance!

MarianoPrz avatar Aug 31 '22 07:08 MarianoPrz

@MarianoPrz , thanks. Couple of questions:

  • can you confirm that the issue only occurs in Teams Mobile and never happens in Teams Desktop?
  • Does that also happen if you log off and log on back to Teams Mobile? Thanks

lucabandMSFT avatar Sep 01 '22 17:09 lucabandMSFT

Hi @lucabandMSFT ,

  • can you confirm that the issue only occurs in Teams Mobile and never happens in Teams Desktop? Yes, only in mobile, desktop and web works well, and this problem never ocurred
  • Does that also happen if you log off and log on back to Teams Mobile? Thanks Yes, it keeps happening, I have even uninstalled the Teams app, deleting all the information, cache etc, and the problem is still there, then after a few hours or the next day it works again

Thanks.

MarianoPrz avatar Sep 02 '22 08:09 MarianoPrz

@MarianoPrz, can you please change the ID in the webApplicationInfo section to "id": "00000003-0000-0ff1-ce00-000000000000" as described in our documentation (https://docs.microsoft.com/en-us/sharepoint/dev/spfx/deployment-spfx-teams-solutions) and see if that resolves the issue?

lucabandMSFT avatar Sep 06 '22 17:09 lucabandMSFT

@lucabandMSFT If I change it, the teams notifications for this app, will stop working ( already tried it). What you show me is only one use case, in our case it must be the id of the app registered in azure as it says here. https://docs.microsoft.com/en-us/microsoftteams/platform/resources/schema/manifest-schema#webapplicationinfo

image

any other idea? Thanks.

MarianoPrz avatar Sep 11 '22 22:09 MarianoPrz

So.. this is interesting (and a little bit complicated).

While technically the documentation you reported is correct, the app mentioned as "webApplicationInfo" for SPFx apps should be the SharePoint one as we use that for token acquisition.

Now, that said, it looks like there's a different behavior between mobile and desktop and that's something we need to check.

But, just for testing purposes, can you please confirm that if you change the webApplicationInfo section to the one I mentioned above things from mobile standpoint (except for notifications) start working properly?

Thanks a lot!

lucabandMSFT avatar Sep 20 '22 15:09 lucabandMSFT

This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within the next 7 days of this comment. Please see our wiki for more information: Issue List Labels: Needs Author Feedback & Issue List: No response from the original issue author

ghost avatar Sep 27 '22 18:09 ghost

This issue has been automatically marked as stale because it has marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within the next 7 days of this comment. Please see our wiki for more information: Issue List Labels: Needs Author Feedback & Issue List: No response from the original issue author

ghost avatar Oct 04 '22 18:10 ghost

Closing issue due to no response from the original author. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: No response from the original issue author

ghost avatar Oct 11 '22 18:10 ghost