I have built a webapp that renders different content for a given route based on whether a user is authenticated or not (by simply checking if req.user
is defined).
Additionally, I am using <meta name="apple-mobile-web-app-capable" content="yes" />
to allow iOS users to open the app in fullscreen mode straight from their homepage.
Although accessing the route in question on traditional browsers (both web and mobile Safari and Chrome) displays the correct content, accessing the webapp in fullscreen mode does not. Further investigation led me to realise that req.user
is undefined
in the latter case.
The issue presumably lies with the fullscreen app mode not properly persisting the user's browser session. As such, what would be the best fix/workaround?
Any advice would be greatly appreciated!