App state not updating whenever turning on test mode

Actions & Logic
Resolved

Hello,

I am FF newbie. I am building new project through FF.

However, I've encountered a problem that I can't understand.

As I understand it, when test mode is turned on, the logged-in user can be conditionally redirected to a different page.

I want to redirect users who have not completed their profile from the main page to the profile page.

In other words, users who have completed their profile should remain on the main page when test mode is turned on.

Accordingly, I have set up the actions under 'on page load' on the main page as shown in the picture below.

The initial page settings of the app are as follows.

Unfortunately, every time test mode starts, users are redirected to the profile page, and the 'profileDone' app state does not update as intended.

When a user completes their profile, the 'profileDone' field in the Firestore document is updated to True.

Will the results differ if I proceed with local testing or download the APK to test on a phone?

Is it possible that the Firestore field value is not being read immediately when test mode is activated?

I eagerly await your experienced assistance.

What have you tried so far?

What have you tried so far?

  1. Changed the field type from boolean to string

  2. not used app state, used conditional actions based on field value but result was not changed

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