Home > Back-end >  How to access a Firebase project
How to access a Firebase project

Time:05-21

An app developer has written some code for me that is hosted on Firebase. I want access to the code and so they have apparently given me admin access.

It's a simple question, but I can't figure out how to access the project. I log into the console:

enter image description here

I see how to "create a project", but I don't know how I can access an existing project. I'm assuming thinking about this whole thing in the wrong way somehow. I would appreciate any help.

CodePudding user response:

You typically have two types of administrators in an app built on Firebase:

  • Project/Firebase administrators who access the project in the Firebase console, and can access the backend view of the services there. This is typically used by the developers on the project, and early administrators. To access the Firebase console, you will sign in with a Google account on console.firebase.google.com.
  • Application administrators, who use a custom-built interface to manage typical application operations, such as giving roles to users, upgrading accounts, etc. For this type of functionality, you will sign in to the custom built application with a Firebase Authentication account.

The email you got came from Firebase Authentication for an account that was created inside the project. There is no way for this account to be a Firebase administrator or even collaborator on the project, so it was more likely meant as an application administrator. This means that any functionality this allows you to access will have to have been built as part of the app itself, and not in the Firebase console.

CodePudding user response:

updaterequest(messagemap) async {
await FirebaseFirestore.instance
    .collection("mentor")
    .doc("request")
    .update(messagemap)
    .catchError((e) {
  print(e.toString());
});

}

This is a code used to update some value in your firebase collections. You can use get instead of update to retrieve data from firebase collection. There is also some function like add,remove,set it can be used instead of update command.

  • Related