Issue with Redirecting Users to URL After API Call in APK

Actions & Logic

Hello FlutterFlow Community,

I’m facing an issue with redirecting users to a URL after an API call in my FlutterFlow app. Here’s the problem:

In my button action, I have an API call that returns a URL. I should redirect the user to this URL in a browser. This setup works perfectly in test mode. However, when I build the APK, the redirection fails unless I remove the entire API action chain and keep only the launch URL action.

When I do the same action chain (API call and then URL redirection) in the true part of the API call, it works fine in test mode but fails in the APK.

Has anyone faced a similar issue or have any insights on what might be causing this behavior in the APK? Any help would be greatly appreciated!

Thanks in advance!

What have you tried so far?

I tried to create a custom action using dart:js or dart:html, and it works fine in test mode. However, the build fails with an error saying these imports are not allowed. It seems like these libraries are not supported in Flutter mobile builds.

Did you check FlutterFlow's Documentation for this topic?
Yes
2
7 replies