[plugin] firebase

From the Asset Store
Firebase Analytics Web App, ( Firebase SDK version 10.0.0 )
  • 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.

  • I added your authentication plugin and the apiv3 but the authentication is not working on the apk file, only on testing on opera browser. Not on phones

    Any ideas?

  • I'm afraid that's not nearly enough information to help debug. Send some shots of the code and pluggin properties.

  • Sure thing. I am adding the coding for the authentication. So, I followed the way it is supposed to check and everything and I am thinking it might be just the inability to show the browser maybe?

    NOTE: I have added the firebase to the app, and also the dependencies in the android studio areas also.

  • Ok. So, you are using Google to authenticate users. Now, I could only ever get the email and password option to work for me. Back during the before times, rex himself was able to use google to authenticate users, and his example project uses a google sign in window and works flawlessly. As far as I'm aware however, Rex never told anyone how to get Google's approval to use their authentication system. In order to use Google's approval system, you need to register your application with them. I tried to figure out how to do this myself many moons ago, but I never figured it out.

    I know this is not the answer you wanted to hear, but I recommend using email to authenticate. You can see the finished product of my game here: haypers.itch.io/pinwall if you need an idea of how it would work. Go to the settings and hit the cloud save button to check it out.

    If you somehow have figured out how to actually use the Google approval system, let us know how. I don't think your AUTH is capable of actually working outside of the development environment.

  • This was something we talked about way earlier in the forum, but this forum has been edited, moved around, and chopped up so many times, that I doubt I could still find it.

  • Here is the other forum where we talked about some of the pitfalls you will encounter: construct.net/en/forum/construct-3/how-do-i-8/android-google-play-149596/page-3

    You should read it all.

  • Thanks much, yeah I have heard somewhere that Rex plugins are not specific to cordova either so that might be an issue too idk. But Ill def give that a shot and also go page by page and search here if its been talked about before :) TY for the quick response!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • What I did for now is I purchased cranberries plugins from the store and gonna try those out because it allows for quite a bit of things for mobile! If I do find out the google thing though, as I have already configured it in firebase and google with the sha1 and web ids, client ids, etc Ill post :)

  • how to setting multiple firebase in 1 apps,,,?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)