I\'m having problem getting download url in firebase function after saving image to cloud storage. Below is my firebase http function in typescript to save base64 string to
Thanks @Doug Stevenson. I believe I found an answer.
I solve deployment errors by recreating new project.
I change my initialization to code below to solve unhandled rejection. Go to Service Acccounts under Project Settings in your firebase project and generate new private key under firebase admin sdk.
const serviceAccount = require('./path/to/serviceaccount.json');
admin.initializeApp({
credential: admin.credential.cert(serviceAccount),
databaseURL: '', // check it under service accounts
storageBucket: '' //check it in script snippet require to add to your website.
});