My game works perfectly on unity editor. I have built it for android devices and uploaded the apk on google drive. Then i installedit on my android device. But some of codes are not working.
Whats not working is: I have two dropdowns which players can select fire color and character color. I save the values and text strings by using playerprefs When they select one. Then they press start button to load next scene. Character color is working good but fire effects are not being instantiated. The more interesting thing is that animation clips are not playing too when press button.
For these types of issues do two things. First, check the player log on the mobile device for any errors. Maybe there are errors loading certain textures, maybe something else, no idea because “doesn’t work” doesn’t give enough information to guess.
Second add Debug.Log statements everywhere so you can track what is actually happening in your code. Then verify the code path is being followed as you expect it should. If not, that gives you something specific to investigate.
Yeah if it works fine in the editor but not on Android, then the editor logs aren’t going to tell you anything. To view the log info, including Debug.Log, on Android you use logcat. More info:
If you have a faulty code and open unity editor in unsafe mode, the firebase package disappears.
I realised that when I was comparing my previous working apk with the damaged one.
If you have a working one:
Change the file type from fileNameWorking.apk to filenameWorking.zip.
Then unzip and compare both fileNameWorking.zip and fileNameDamaged.zip.
There is a FirebaseCrashlytic.UnityPackage which may help.
Hope this works.