so the same app and specifically a line which does a fetch request, works on android phones and simulator, but on ios fitbit app I get this error thrown
the data couldn't be read because it isn't in the correct format anyone has any idea ? I saw in some searches it's a common swift error
thank you
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.
I used proxyman to track request done on ios and there was something sent differently in headers that was making the api return a bad request xml response which makes sense that json() was breaking
Best Answer