Firebase Login Not Working on APK Export

I have set up a login workflow using firebase, it work perfectly on preview but when i export my game is APK it doesnt work at all.

When login is pressed it should connect to firebase check if the login is valid and then check if the email is verified if so go back to the main screen. This works pereclty in preview, however when exported it doesnt do any of this, i can put in anthing at it just goes back to the main screen. even when using a verified account it doesnt do anything just back to the main screen. I can tell login hasn’t worked as the variable isUserLogged in changes the login button to log out which doesnt happen either.

I have tried this two ways (screen shots below) both work in preview but not when exported.


Any help would be appreciated this is my first game.