I found the problem. And I can't fix it. Basically, for whatever reason, rex's leaderboard plugin requires full read and write access to the entire firebase database to work. You can not update your ranks if you have not left your database rules open to everyone. I already had rules in place for my save slot data, and even giving full read and write access to just the leaderboards still is not enough. This rule set that I created doesn't work. {
"rules":{
"SaveSlot":{
"$user":{
".read":"auth.uid === $user",
".write":"auth.uid === $user"
}
},
"Leaderboard":{
"$gamemode": {
"$user": {
".read":true,
".write":"auth.uid === $user"
}
}
}
}
}
I can use the save slot plugin all I want, but the leaderboard plugin requires full access, and I don't want to set the rules to do that. Any ideas?
Update: I'm sorry. I feel bad for giving you all so many notifications. But I actually just found my problem. If you slightly adjust how you give the read permission, so that it looks like this:
{
"rules":{
"SaveSlot":{
"$user":{
".read":"auth.uid === $user",
".write":"auth.uid === $user"
}
},
"Leaderboard":{ ".read":true,
"$gamemode": {
"$user": {
".write":"auth.uid === $user"
}
}
}
}
}
It works fine. My bad yall, just ignore me.