1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Flutter] Flutter App Not Working On iOS Web Browser

Discussão em 'Mobile' iniciado por Stack, Novembro 7, 2024 às 16:12.

  1. Stack

    Stack Membro Participativo

    I have developed a Flutter app that fetches data from a C# API I have access to. That Flutter app is available on Android, but not on iOS - so, as a workaround, it has been uploaded as a JS application, available on any web browser.

    The app users are authentified through cookies. They have to use the login request (POST method) to get those cookies and to access to the API without getting a 401 error. The login request, however, doesn't return 401s itself - it returns a 403 if the authentification fails.

    The Flutter app works as intended on Android phone's web browser, as long as cookies are authorized.

    However, on IPhone's web browser, everytime some user tries to log in, I've got this error :

    minified:d2: DioError [DioErrorType.response]: XMLHttpRequest error.


    No status code is given. According to the API logs, the user has been authenticated, but the Flutter app doesn't seem to consider this. Indeed, everytime a user logs in, its username is stored within the app's global state - but in this case, according to the app's logs, no username is stored.

    Does someone know where could this come from?

    Thank you in advance

    Continue reading...

Compartilhe esta Página