I have a firebase project and I added a Firestore database but I forgot to choose the right location. Since the location can not be modified after creating the database and the database is empty I would like to just delete it and create a new one with the correct location. Is this possible or do I need to create the whole project again?
Would appreciate help a lot.
Once a region is set for a project, it can't be changed. In the documentation it says:
Warning: Setting the location for one of the following services [Firestore, Storage, App Engine] also sets the location for the others. After you set your project's default GCP resource location, you cannot change it.
So, you will have to create a whole new project.
Related
I would like to know how can I prevent somebody who has my google-services.json file associated with one of my Firebase Firestore projects from accessing my project.
you don't need to create a new google-service.json after you make any changes to console,
it will be automatically created,
you just need to download it from
settings -> Project settings -> select your package/bundle-id -> click the download icon
I don't there's a way to you can change those credentials for the same project. Even if you delete that app and recreate it in Firebase project, it'll change the mobilesdk_app_id only. Creating a new project maybe the only way to get a completely new google-services.json
I'm not sure which SSH keys you are referring to but if you are just re-configuring your application then you can visit https://console.firebase.google.com/project/_/settings/general and then select the app name you are looking for. You'll have an option to download google-services.json there. The rest of configuration process should remain the same.
Is there any way that I could change the directory for firebase deploy?
I want to change the 'notificationtest...' into another firebase directory name:
I hope I am giving a clear question here though because I don't know how to explain it in proper words.
That notificationtest-59f94 is your project ID, which you can't change after your project was created. If you want to deploy to a different URL, you will have to create another project.
Note that the console adds a suffix ("59f94" in your case) to new projects if another project already exists with the name you picked. So you will have to pick a unique name to prevent getting such a suffix.
And last I checked the project name had to have a - in it. So if you don' specify one yourself, the console will also add a suffix. Note though that these rules occasionally change, so be sure to check what the console says your project ID will become.
We had created the multiple databases. Now, we need to rename the database that is used for testing purpose. So, Is it possible to rename check-12cc0-test database? Please check out the image below.
You can change your project name from here
I have it in Spanish, but at the right of project overview, project configuration you should see the pencil to edit your project name.
Note you can't change your database name since it's the ID of the project, you will need to create a new one and delete the one you have to change the database name. You can only change your children and keys inside your database main tree node.
Since the id of the project can't change, this is what Firebase tells to us about it:
ID of the project
It is the unique identifier of your Firebase project. You can find it in the project URL: https://console.firebase.google.com/project/<projectId>
Remember that for edit the nodes and keys you can't do it directly from Firebase, instead you should export your JSON Database and edit it, then reupload it, or do it programmatically.
I've mistakenly chosen the wrong Country/region during the creation of a project in firebase.
As you can see here:
Can this be fixed?
(I know the project Id cannot be changed and I like the Id I've chosen...)
As the docs say, in bold no less:
Once you select a location for your project, you cannot change it.
You can however change the location for certain services (e.g. Cloud Functions and Cloud Storage) when setting them up.
I want to set a push notification for a folder in google drive using google api such that any changed made to any file inside that folder than i get a call -back.
What I know is that its not possible at this moment. Instead of that you can create changes hook and get informed if ANY file on drive is changed. After theat run file search request to find all files within given folder by passing its ID, ie:
"'<folder_id>' in parents"
where <folder_id> is id of the folder where you want to look for changes. You can then look for last modified date and compare to your own cache, for example stored on your server in cache files. If file is newer than do with it whatever you want (and of course update cache).
please refer to:
https://developers.google.com/drive/v2/reference/changes/watch
https://developers.google.com/drive/web/search-parameters