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

Undefined 'window.webkit' when opening tab in Teams Mobile iOS #2198

Open
MajaEffenberg opened this issue Mar 5, 2024 · 11 comments
Open

Undefined 'window.webkit' when opening tab in Teams Mobile iOS #2198

MajaEffenberg opened this issue Mar 5, 2024 · 11 comments

Comments

@MajaEffenberg
Copy link

When opening application in Teams Tabs in iframe, we are getting error that window.webkit.messageHandlers is undefined.
Error comes from 'teams-js' library and happens during app.initialize(). And after our research we know that fill window.webkit is undefined.

Error appears only in Teams Mobile iOS app on:

  • iPhones - multiple versions of the iPhone OS, e.g: 17.3.1, 17.2.1, 15.3.1, 15.6
  • iPads - OS version 17.3.1

Our Teams-js version - 2.20.0

@Dinesh-MSFT
Copy link

Dinesh-MSFT commented Mar 5, 2024

Hi @MajaEffenberg, could you please refer this thread which seems to be having a similar issue - https://stackoverflow.com/questions/72232008/window-webkit-messagehandlers-is-null-on-ios-15/76977841. Meanwhile we will also check from our end.

@MajaEffenberg
Copy link
Author

Thank you for fast response, but linked issue doesn't look like our problem because we don't set any WKWebView in our project.
We are also not doing by our self any operations on window.webkit.messageHandlers, and error happens in your library.

@ChetanSharma-msft
Copy link

Hello @MajaEffenberg - Are you facing this issue only with TeamsJS 2.20.0 or with other versions as well?
Also, please confirm if you are using Classic or New Teams client.

@sschoeb
Copy link

sschoeb commented Mar 10, 2024

@ChetanSharma-msft I'm a coworker of @MajaEffenberg.

No, we saw that also before, but updated to the latest version to make sure we do not have an "already fixed" issue.

I think there is no "classic" or "new" client for the mobile version right? We do only see this within teams on mobile ios devices. (that is at least what the user agent is telling us).

Additional information:

isNativerInterface is NOT undefined
window.webkit IS undefined <- This is why we see the crash.

Wee see that error currently quite a few times every day. But we are not able to reproduce it somehow yet. Let me know if you need any further information on that.

@ChetanSharma-msft
Copy link

Hello @sschoeb - Sorry for delay in response.
We will look into it and let you know the updates.

@sschoeb
Copy link

sschoeb commented Mar 27, 2024

@ChetanSharma-msft We do see this error on daily basis. Is there any update on this? Do you need any additional information we could provide?

@sschoeb
Copy link

sschoeb commented Apr 2, 2024

@TrevorJoelHarris I allow myself to tag you. We are not sure if our bug report here is in the correct repository? As this bug occurs only within the teams app on ios but there within this library. Let me know if we should report that somewhere else, thank you :)

@Dinesh-MSFT
Copy link

Dinesh-MSFT commented Apr 4, 2024

Hi @sschoeb - Sorry for delay in response.
We checked this at our end in IOS tabs apps are working fine. We are checking with engineering team and let you know the update.

@sschoeb
Copy link

sschoeb commented Apr 4, 2024

@Dinesh-MSFT Thank you for your response.

Tabs do also work fine for us.. most of the time. But we have a lot of reports where it does not from our customers. So that definitely needs some more investigation. Is there anything we could help you with? Any additional information you need?

@sschoeb
Copy link

sschoeb commented Apr 10, 2024

@Dinesh-MSFT @ChetanSharma-msft We have seen this issue a lot - do you have any additional information on how important that issue is at your side? Is it like a "we look into it once in the next half year" or does anybody care about the problem?

@Dinesh-MSFT
Copy link

Hi @sschoeb - We are actively checking with engineering team and let you know the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants