# iOS Add to Home Screen session results in Oops!, something went wrong

**URL:** <https://community.auth0.com/t/ios-add-to-home-screen-session-results-in-oops-something-went-wrong/11839>\
**Category:** Get Help\
**Tags:** oops-page, safari, ios, auth0\
**Created:** [May 25, 2018, 2:50pm UTC](https://community.auth0.com/t/ios-add-to-home-screen-session-results-in-oops-something-went-wrong/11839 "2018-05-25T14:50:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jellis](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@jellis](https://community.auth0.com/u/jellis)\
**Post date:** [May 25, 2018, 2:50pm UTC](https://community.auth0.com/t/ios-add-to-home-screen-session-results-in-oops-something-went-wrong/11839/1 "2018-05-25T14:50:28Z")

</div>

We have ten apps (all using same auth code) that recently started bouncing to the _Oops!, something went wrong_ page, only on iOS, only when the Web session was started via an _Add to Home Screen_’ed icon. Nothing has changed in the code for months (which might be part of the problem). However, I know there have been iOS, Auth0, and other on changes since then.

The login attempts do not show up on the Auth0 logs, and I’m not aware of a JavaScript console for _Add to Home Screen_’ed web pages. And, as any good tool should, I couldn’t get it to actually try logging in when I used a MITM proxy to see if the HTTP(S) traffic contained any clues.

Any thoughts? Anyone else seeing this?

---

<div class="post-metadata">

**Author:** ![luis.rudge](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/luis.rudge/32/7073_2.png) [@luis.rudge](https://community.auth0.com/u/luis.rudge)\
**Post date:** [May 25, 2018, 3:29pm UTC](https://community.auth0.com/t/ios-add-to-home-screen-session-results-in-oops-something-went-wrong/11839/2 "2018-05-25T15:29:48Z")

</div>

> [@jellis](#):
>
> when the Web session was started via an _Add to Home Screen_ ’ed icon

can you explain that? You mean you’re adding the /login page to your home screen?

---

<div class="post-metadata">

**Author:** ![davidowens](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/davidowens/32/8160_2.png) [@davidowens](https://community.auth0.com/u/davidowens)\
**Post date:** [June 6, 2018, 5:10pm UTC](https://community.auth0.com/t/ios-add-to-home-screen-session-results-in-oops-something-went-wrong/11839/3 "2018-06-06T17:10:29Z")

</div>

One thing I’ve encountered today is that an add to homescreen’ed app can’t set cookies, (and neither can the iFrame I tried embedding the login flow in) Auth0 uses cookies to maintain state through its `/authenticate`, `/login` `/callback` screens before it returns you back to _your_ callback/redirect page

---

<div class="post-metadata">

**Author:** ![peterbengtsson](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/peterbengtsson/32/8216_2.png) [@peterbengtsson](https://community.auth0.com/u/peterbengtsson)\
**Post date:** [August 8, 2018, 8:32pm UTC](https://community.auth0.com/t/ios-add-to-home-screen-session-results-in-oops-something-went-wrong/11839/4 "2018-08-08T20:32:05Z")

</div>

I’m no expert at the individual upgrades of iOS but skimming around on [https://github.com/firebase/firebase-js-sdk/issues/77#issuecomment-389764404](https://github.com/firebase/firebase-js-sdk/issues/77#issuecomment-389764404) it’s clear that SSO won’t work in homescreen web apps because the user agent can’t be trusted.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [August 19, 2019, 8:25am UTC](https://community.auth0.com/t/ios-add-to-home-screen-session-results-in-oops-something-went-wrong/11839/5 "2019-08-19T08:25:59Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
