Forum Discussion
Unknown crossbar on Teams tab
- Oct 31, 2024
Dear Nivedipa
First of all, I'd like to know what the script tags you mentioned is .
In order to get the language of Teams, I'm using "~index.html?locale={app.locale}" in the "contentUrl" of manifest.json. And so far, it works well.
Actually, I used "app.initialize()" of Teams Client lib. to get the lang info.
However ,It took a lot of time for Client sdk lib to be initialized. And it made a sync problem to initialize our app. On the other hand, "~ ?locale={app.locale}" doesn't take almost.
1. If this is "script tag", do I have to initalize "app.initialize()" of the sdk lib before parsing "?locale={app.locale}" ?I tried to use "app.intialize()" in my code. And I found that the cross banner is disappeared.
2. we often use <script /> in "index.html". Is this the script tags you mentioned ?
That means that we have to use MS Client sdk when using "Static tab" ?Otherwise, can you let me know what the script tags is?
Many thanks
BH
byungheesohn - Thanks for reporting your issue. We have tested this and able to repro your issue.
Engineering team has confirmed that now it is mandatory to initialise SDK for static tabs as well. Within your content page, add a reference to Microsoft Teams JavaScript client library using script tags. After your page loads, make a call to app.initialize(), or else your page isn't displayed. we display a banner instead of hiding the app because we didn't want to prevent customers from using these apps.
But to remove the banner, the developer needs to ensure that the pages they are loading initialize teams-js as documented here:
https://learn.microsoft.com/en-us/microsoftteams/platform/tabs/how-to/tab-requirements
Thanks,
Nivedipa
------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
I'll wait for the new one.
Many thanks
BH
- Nivedipa-MSFTOct 23, 2024Microsoft
byungheesohn - Could you please share your feedback via Microsoft Teams Developer Feedback link?