Open matthiastz opened 2 years ago
@thomasvidas any idea how this could happen? 🤔
We've been seeing the same behaviour on the iOS version of our app, where our auth cookies seem to get removed after about a week of not opening the app on an iOS device.
Don't suppose you've found any work arounds for this @matthiastz?
We're seeing the similar cookie-dropping behavior in our ios app. The cookie dropping behavior is flaky. It happens only on some ios devices. I'm guessing this issue might be related to ios privacy / tracking constraints..... or not. :(
Bug Report
Capacitor Version
Platform(s)
native Apps on iOS, Android
Current Behavior
Expected Behavior
Already logged in users should not loose their session (Cookie) automatically, but stay logged in. Cookie storage never should get deleted.
Code Reproduction
Can not share any code, since these are private company repos. But I can describe some basic setup: we have lots of JS/TS code, that handle our views. Capacitor is used to wrap this and deploy a native iOS and Android App for the users.
Our main backend that is used by the App handles authentication and authorization (and other parts), we setup the main domain for the
server.hostname
config incapacitor.config.json
, e.g. when the backend runs athttps://some.domain.com
we setserver.hostname
todomain.com
(relevant: https://github.com/ionic-team/capacitor/issues/1373#issuecomment-707822708)Other Technical Details
npm --version
output:node --version
output:pod --version
output (iOS issues only): 1.11.3Additional Context
document.cookies
Hints for possible causes for this issue
Thx already for any info and help! 🙂