ios10 Safari View Controller cookies issue

Hi Developers


I am part of an ios sdk team. I am seeing following issue. Let me know if anyone else has faced it as well. If yes, did you find any resolution?


What is the issue: When I open a website in Safari View Controller, I am observing that safari view controller is not setting any cookies on the website and hence when you open the same website again in Safari View Controller, you would be treated as a new customer altogether. One repercussion of this is that your login information is lost when you go to the website again.


How to test/verify/reproduce this behavior:

1. Try afresh (may be reset all settings on the deivce, settings -> general -> reset -> reset all settings. Just make sure there are no cookies in your ios device’s safari browser) with an ios10 device and try to open https://www.amazon.com ( this is just an example website) in safari view controller from your ios app(you can do http://pastebin.com/jj4brCV0).

2. Now login to the amazon website. Press Done when logged in(Done is an svc button). You will be taken back to your ios app.

3. Now again repeat step1 and try to log in. You will see that you are not logged in amazon.com. Ideally you should be logged in because you already logged in the first time.


This indicate the cookies are not being saved during the svc flow on ios10.


Ps: If you perform the same steps on an ios9 devices with safari view controller, then you see yourself logged in the second time in step 3 above. If you do the same steps in safari browser(on any device ios9 or ios10), you will see yourself logged in the second time which means problem is only with safari view controller.


Does anyone know that it is a known issue on ios 10? Any help regarding this issue will be appreciated.

Replies

Is there any update on this issue from Apple ? We encounter the same issue too!

Is there any update on this issue from Apple ? We encounter the same issue too!