我正在使用IONIC V3进行开发,使用原生相机插件和Firebase for Auth,数据库,存储和 Cloud 功能[完整包] .

我可以拍照然后将其转换为BLOB然后将其推送到Firebase存储 .

this.fp.makeFileIntoBlob(imageData, "random.jpg").then((blob) => {
    this.fp.uploadToFirebase(blob,this.user.$key+'/random.jpg').then((imageUrl) => { 
           //SAVE imageUrl to Database 
      });
    });

    uploadToFirebase(_imageBlob, fileName) {
        return new Promise((resolve, reject) => {
          var fileRef = firebase.storage().ref().child(fileName)
          fileRef.put(_imageBlob).then(function(result){
            fileRef.getDownloadURL().then(function(result){
              resolve(result);
            })
          });    
    });
  }

我收到了返回的imageUrl但是当我尝试访问它时,我得到:
"code":403,
"message":"Permission denied. Could not perform this operation"

TWIST:这个错误不会一直发生 .