Project blinking and crashing when exporting to android #188
-
I am building a mobile game using Firebase. The project works flawlessly when testing on PC, but when exporting to my phone, either by .apk or by usb debugging, the game screen flickers and closes itself. I tried a lot of things, and am 100% sure its the Firebase module. For a minimum testing project I created the most simple of scripts: extends Control
#the following are X-ed out but am using real ones in the project
var username = "xxxxxxx"
var email = "xxx@xx.xx"
var password = "xxxxxxxx"
func _ready():
Firebase.Auth.connect("login_succeeded", self, "_on_login_successful")
func _on_Button_pressed():
Firebase.Auth.login_with_email_and_password(email, password)
func _on_login_successful(auth):
print("Login successful")
$label.text = "Login successful"
func _on_login_failed(code, message):
$label.text = ("Login failed. Reason: %s") %message On PC the code above runs without a problem, but on my phone it flickers and closes. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
@InfiniteNex have you been able to use the ADB to check what might be going on? It has been a while since I had to use it, but I ended up having an issue that I was able to track down pretty quickly with it. ~ Chuck |
Beta Was this translation helpful? Give feedback.
-
I know this isn't very helpful, but I've heard recently there's a lot of bugs right now with Android exports specifically. I can try to attempt to figure out what's going on myself too at the same time tonight after work. Thanks for pointing it out - if it is one with our stuff, I'll go ahead and open a ticket for it. |
Beta Was this translation helpful? Give feedback.
-
I've run into this issue before. It has something to do with initialization and actually opening the project. @InfiniteNex - do me a favor: next time you have a bit of time to test, try opening the actual Godot Firebase project file that's included in the plugin repository, then go back to your project, open the plugins, and refresh the plugins. Make sure Firebase is turned on there as well - it should be by default, but just in case. Unfortunately I'm not remembering exactly what I did to fix it, but I feel like something along those lines did it. |
Beta Was this translation helpful? Give feedback.
-
THE ISSIUE HAS BEEN FIXED! I randomly turned off the "Custom Docs" plugin, and now everything works as intended. Its a super non-obvious fix but it worked! Thanks to everyone who tried to help me out. |
Beta Was this translation helpful? Give feedback.
THE ISSIUE HAS BEEN FIXED! I randomly turned off the "Custom Docs" plugin, and now everything works as intended. Its a super non-obvious fix but it worked!
Thanks to everyone who tried to help me out.