Custom SPFx App working in teams browser but not Teams App?

Ward, Brandon K 21 Reputation points
2023-09-26T14:30:31.6166667+00:00

Hi All,

I'm developing a custom SPFx app using MSGraph calls and want to implement it as a teams tab as well. I was initially having some errors relating to the teams manifest file, which were easy to troubleshoot in teams browser. I eventually figured out the correct configuration URL for both my Dev tenant and Test tenant. However upon deploying the solution to our test environment from my dev tenant, the app no longer works in the Teams App. It does work in the teams browser, however, which makes it nearly impossible to troubleshoot. My only error is the screenshot I get below.

What am I missing?

Capture

1

Microsoft 365 and Office | SharePoint | Development
Microsoft Teams | Development
Microsoft Teams | Development
Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
{count} votes

Answer accepted by question author
  1. Anonymous
    2023-09-27T06:48:20.9+00:00

    Hi @Ward, Brandon K

    Based on the information you provided, I think the source of the problem may be caused by Graph api.

    Can you provide what API you called (can you try to give the app higher permissions to avoid some unnecessary restrictions)?

    Or for more information about related deployment settings? (Pay attention to protecting personal privacy)

    Here is link for your reference:

    https://github.com/SharePoint/sp-dev-docs/issues/7034


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Ward, Brandon K 21 Reputation points
    2023-09-29T13:11:07.9433333+00:00

    The solution for us was to use a global admin to login to Sharepoint's Admin Center and access the API Management page. Once logged in, something fixed and our error removed. We were specifically getting 400 error on a Client Side auth.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.