FLUTTER_WEB API CALL NOT WORKING IN RELEASE BUILD

984 views
Skip to first unread message

vinay sharma

unread,
Jan 11, 2020, 11:17:48 AM1/11/20
to Flutter Development (flutter-dev)
i'm building an flutter web app and every api calls are  working fine in dev-mode  but when i tried release mode some api calls are not working(workig in dev-mode)

has anyone encountered this kind of problem ? Can anyone help fix this issue?

Suzuki Tomohiro

unread,
Jan 11, 2020, 11:39:56 AM1/11/20
to vinay sharma, Flutter Development (flutter-dev)
What API call are you referring to?

On Sat, Jan 11, 2020 at 11:17 vinay sharma <vkshar...@gmail.com> wrote:
i'm building an flutter web app and every api calls are  working fine in dev-mode  but when i tried release mode some api calls are not working(workig in dev-mode)

has anyone encountered this kind of problem ? Can anyone help fix this issue?

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/7920ed6c-e050-4370-8f14-b586371298c9%40googlegroups.com.

Suzuki Tomohiro

unread,
Jan 11, 2020, 3:08:56 PM1/11/20
to Flutter Development (flutter-dev), vinay sharma
Great to hear you identified the root cause of the problem.

Regards,
Tomo

On Sat, Jan 11, 2020 at 13:40 vinay sharma <vkshar...@gmail.com> wrote:
Actually i just found an issue on github
discussing the same issue nd its still open.


On Sat, 11 Jan, 2020, 11:58 PM Suzuki Tomohiro, <suz...@gmail.com> wrote:
Glad you figured it out. No, I’ve never used Flutter web. (Not going to set up an app for this problem)

If your finding is really happening, it’s worth reporting to Flutter team after you create a minimal project to reproduce the difference between dev and release build.

Regards,
Tomo

On Sat, Jan 11, 2020 at 12:29 vinay sharma <vkshar...@gmail.com> wrote:
TY sir for responding,

actually i found the problem,
After decoding my response data i ws checking its type by using 
data.runtimeType to check if its a Map or Array ...it ws working fine in dev mode but not in release build.
so i changed it and used "is" operator to find data type nd it worked.

can u please tell me y it ws working in dev mode nd not in release build?



On Sat, 11 Jan, 2020, 10:29 PM Suzuki Tomohiro, <suz...@gmail.com> wrote:
Good. What about error messages?

On Sat, Jan 11, 2020 at 11:54 vinay sharma <vkshar...@gmail.com> wrote:
im making an API call to my golang webserver to get some data, it is working fine in dev-mode but not in release mode
Reply all
Reply to author
Forward
0 new messages