SOLVED

How to enable cookies & cross site tracking in Teams IOS App

Copper Contributor

I am developing an app for Microsoft Teams. The app includes a personal tab (static) tab which displays an iframe from a different domain to achieve some functionality within the personal tab. The iframe displays well in the Desktop client, web client and in the Android mobile device of the teams. When it comes to the Teams IOS App, the iframe could not load because it needs cookies functionality. It seems the teams IOS app prevents the cookies & cross site tracking.

 

Here are the options I tried which did not work:

1. Enabled safari as my default browser and enabled cookies & cross site tracking in IOS (Iphone) safari settings.

2. Enabled chrome as my default browser and enabled cookies & cross site tracking in IOS (Iphone) safari settings.

 

Note: The same iframe URL is able to load and display in my iphone safari without any issues.

 

Please assist if someone came across this issue in Teams IOS App and is there any setting I need to enable programatically.

7 Replies
We are looking into this, we will get back to you soon.
Thanks

@HunaidHanfee-MSFT is it just cookies, because I have the same problem, with my app. Loads everywhere but iOS, and no idea why. Has anyone else seen similar issues?

We are trying repro this at our end. I will get back to you with updates.
Thanks for understanding

@MarkFerraz -
I tried setting up a cookie and accessing it and I didn't faced any issue. This how I did it:

document.cookie = "testKey=testValue;SameSite=None;Secure";


Could you please try with the same as I did.

@HunaidHanfee-MSFT  thanks for your response. The iframe that I am trying to display in the Personal Tab is trying to set this automatically and it is 3rd party cookies. I can observe these 3rd party cookies are set automatically when I open the same app in MS Teams Desktop Client & Android. So with your option should I set it manually/explicitly so the Teams IOS does not block?

 

We are checking internally. I will get back to you soon,
best response confirmed by ChetanSharma-msft (Microsoft)
Solution

@krishnapilla -
The 3rd party cookies have been blocked by iOS starting iOS 14. This is not just for Teams, but for other apps as well. 
Here is the link  -
https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/

You can try setting the cookie manually. Let us know if that helps you.

Thanks, 

Hunaid Hanfee

-------------------------------------------------------------

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. 

1 best response

Accepted Solutions
best response confirmed by ChetanSharma-msft (Microsoft)
Solution

@krishnapilla -
The 3rd party cookies have been blocked by iOS starting iOS 14. This is not just for Teams, but for other apps as well. 
Here is the link  -
https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/

You can try setting the cookie manually. Let us know if that helps you.

Thanks, 

Hunaid Hanfee

-------------------------------------------------------------

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. 

View solution in original post