Skip to content

teamsJs Fails to Initialize from Child Iframe (v2.36.0+) #2836

Open
@StanDeveloper

Description

@StanDeveloper

Hi, I’ve encountered an issue with initializing teamsJs from a child iframe in my Teams app. The app contains an iframe that calls teamsJs.initialize(), and this setup worked as expected up to version 2.35.0.

Starting from version 2.36.0, teamsJs no longer initializes from the child iframe. When enabling debug logs via
localStorage.debug = 'teamsJs.*';
I noticed that the event teamsJs:childProxingCommunication:handleIncomingMessageFromChild was logged with v2.35.0, but it no longer appears in v2.36.0 and above. I'm not sure if the lack of this log is directly related to the initialization issue, but the change in behavior seems to have started with v2.36.0.

Here are some screenshots.
Image
Image

Here is a test project where you can see the behavior by only changing the version in the package.json.
https://github.com/StanDeveloper/glowing-memory

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions