I just got my game go live on google play store but when my friend installed it from play store, the app stops when he submits his score. So I tried manually inserting a score into the firebase database and checked the score page of my game. It displays the score so that confirms my game having access and is able to read from the firebase db. However, it crashes when my friend submits his score (writing the score into the db).
Is it because there's an issue with writing into firebase db from a signed bundle? Because local testing and unsigned bundle both work.
This is how I insert into firebase db:
databaseReference.push().setValue(new UserRecord(name, score));
This is what my object looks like:
import com.google.firebase.database.IgnoreExtraProperties;`
@IgnoreExtraProperties
public class UserRecord {
public String name;
public int score;
public UserRecord() {
// Default constructor required for calls to DataSnapshot.getValue(User.class)
}
public UserRecord(String name, int score) {
this.name= name;
this.score= score;
}
}
Any idea? Thank you.