I wish to use firebase functions. When I input firebase init in my current folder, it displays the incorrect default projects below. These projects displayed are from my google account 1. Currently I am logged into google account 2.
How would I get firebase init to display the correct default projects (the projects from google account 2)? These are the projects from my google account 2:
You first have to logout from the CLI with the logout command and then login again (command login) with your google account 2.
See the list of commands here: https://github.com/firebase/firebase-tools
I had this same issue and this was due to an environment variable that was stored on the system, you have to delete it, restart your machine and try the command again
Related
I am getting this error message, and don't understand what I need to do to fix. How do I verify ownership of a Firebase deep link?
Deep links not working
Users will not go directly to your app from links associated with this path, but will see the app picker or be directed to the web browser. Once you have fixed these issues and published a new version, users need to update their app before the links will work.
FIX DOMAIN ISSUES
error
1 domain failed validation
brightness_1
Fix domain issues by verifying ownership of web links associated with this path
Get SHA256 Hash from release key file. You can also find sha256_cert_fingerprints from above assetlinks.json.
Go to the firebase console, select your project, add the SHA 256 key.
Open your dynamics link domain - https://xxxx.page.link/.well-known/assetlinks.json
Upload new version. It will work.
As shown in the attached picture the console & tabs are no longer there! How can I restore them?
Those 2 tabs have been removed from Firebase console and a notice for the same was shown last month. You need to use the Google Cloud Functions console to view functions' logs and statistics.
Firebase console now shows the follow alert once:
Alternatively, you can log into the Firebase Console, go to the functions menu, and from the overflow icon displayed for each function, navigate to see its log (see the view logs option). It will save you some time.
I am learning how to set up and host a webpage through firebase, and when I attempt to initialize the project (by running firebase init in the firebase CLI) every time I reach the firestore setup portion, it always results in the same error.
It looks like you haven't used Cloud Firestore in this project before. Go to https://console.firebase.google.com/project/resume-site-599bc/firestore to create your Cloud Firestore database
When I copy and paste the link, it brings me to the firebase console page and says "your action was forbidden" no matter what I do. I have tried to go into the console settings and made sure all of the correct APIs are enabled. But there seems to be little help when I tried googling the issue.
Thank you.
I had the very same and error and fixed it with #MS29's method. More verbose for simplicity:
In the Firebase Dashboard, go to Project Settings -> General
Set "Default GCP resource location" again.
After that, the Firestore can be found again.
So even though I already had the project created and I created my Firestore database, my: Default GCP resource location didn't select properly when creating the project. Once I fixed this, it had no problem connecting to my database.
I've faced the same problem with Angular 14.2.0 and firebase 19.14. The solution for me was as follow:
I've checked the project list by using firebase cli:
firebase projects:list
There I noticed that the Resource Location ID wasn't set for any reasons. So I opened the settings of my firebase-project using the console (https://console.firebase.google.com/) and on project settings tab u can set the GCP. That's it
Look like you haven't create project on your firebase account
So firebase ask you go into the link to create project.
For the problem of "your action was forbidden",
it seem to be the problem of multi google accounts.
Google still work quite bad on multi accounts sometime.
You can try access the google firebase console main page by the link below.
https://console.firebase.google.com/u/0/
https://console.firebase.google.com/u/1/
The last number is the number of user. You can change it if you have many google accounts.
P.S. The user order will change if you logout.
Most likely that you don't have the project created in firebase. Either create a new project by going to
https://firebase.corp.google.com/u/0/
or enable Firebase for an existing GCP project by choosing that project in the add project page
it's happening same to me too, but in my case:
I already created the database at Firestore Cloud *at their website
for now I'm still troubled with it, if I have solution.
#update
hello, I'm in bandwagon when it comes to this problem: [firebase init firestore not work with existing project]
I'm using firebase CLI version 10.6.0
but somehow I manage to deal with it, here's my solution/timeline:
I install using firebase login --no-localhost because encounter problems with firebase login
encountered with errors: cannot install firestore but hosting part can.
try to reset database, created again but still get error: cannot install firestore
then I logout, then login using ONLY firebase login, not the firebase login --no-localhost
bang! solved!
hope it helps~
Although I followed the below guide on my app (up to 7th step because I'm not interested in personal contents or on-device indexing):
Firebase appIndexing tutorial
And connected my app to firebase consol.
Also verified steps against "Get Started" guide:
Firebase AppIndex for Android Get Start guide
And followed steps included in Google guide to create deep link in app (except for reading data from coming intent section) as below link:
Google guide for creating deep link to app contents
I also verified the intent code in the manifest using adb command and got it successfully executed for specified url data (scheme, host, and pathPrefix) with added android:autoVerify="true".
The only thing I couldn't accomplish is to declare the "Digital Asset Links" file by uploading it to my website on Weebly, because I couldn't find a way through my search to do so.
Now, after I added the android app into my webmaster as a property and verified the ownership of my website on Weebly then associated the website to the app in the webmaster, I got the following message in the "Crawl status":
"We did not find any pages to index in your app
Your app pages must be found and indexed before Google can start showing them in search results. You can tell Google which pages to index in a sitemap or in web page markup, or if your website and app have identical page organization, Google can infer your app pages from their corresponding web pages."
I'm really stuck here, and don't know what else to do to index my app contents keywords into Google Play for users to find my app when they search these keywords.
Is there any steps I missed in order to have my app indexed? or is there any other method to make my app on Google Play found when searching for specific keywords (that's all what I want, and I created the website specially for this task)?
Thanks in advance for your help.
App Indexing is for finding app pages in Google search, not in Google Play.
Unfortunately, you do need to associate the Digital Asset file, but this is just a text file in a known location: you can see the details in https://developer.android.com/training/app-links/verify-site-associations
I am trying to sign users into my application using an external app. In this case, facebook. I am using cloud 9, so I don't have the meteor app(ide) downloaded on my pc. Anytime I try to use facebooks activation, i get this error:
"Given URL is not allowed by the Application configuration: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains."
I already created my app on facebook. The uri uses: http://0.0.0.0:8080
That's not what I set it to use on facebook. Any pointers on fixing this?
Found the answer. You can export your app so that it runs on the right url you want it to.
Command: $ export ROOT_URL='https://-.c9.io/'
This gets rid of 0.0.8080 or whatever.
Check this question for reference: Meteor accounts-twitter unable to get working