04-11-2018 23:31
04-11-2018 23:31
I'm using a cookie for authentication when my companion app fetches from a web site. On the simulator, it works perfectly, but running against a real phone with my Versa, the cookie seems to be lost between runs. Is that correct? If so, would it be possible to change that? After all, browsers do remember cookies between runs.
Thanks.
Best Answer04-12-2018 13:04
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
04-12-2018 13:04
Is it perhaps just being lost when you install a new version of the app? You should be able to persist your values in the local-storage.
Best Answer04-12-2018 13:08
04-12-2018 13:08
No, they don't seem to be preserved between the request in which the server sets the cookie based on a password and the follow-up request when the companion app fetches a resource from the same server. In the simulator, this worked perfectly, but in real life, even running against the same server, the server doesn't see a cookie.
Best Answer