title: Firebase upload is not getting download URL
body: <p>I am working on a function where I am going to upload image from emulator which sends to firebase storage. I want to get the downloadURL and to be placed into firebase firestore but, I am not retrieving the download URL. Would appreciate help.. thank you!
  I am currently doing my project with firebase storage and firestore, ionic v5.</p>
  <pre><code>uploadToStorage(){
    let options: CameraOptions ={
      quality : 100,
      destinationType:this.camera.DestinationType.DATA_URL,
      encodingType : this.camera.EncodingType.JPEG,
      sourceType : this.camera.PictureSourceType.PHOTOLIBRARY
    }
    this.camera.getPicture(options).then((data)=&gt;{
      var storage = this.store.ref('/AAA');
      var photoRef = storage.child(this.mAuth.auth.currentUser.uid);
      let base64img = 'data:image/jpeg;base64' + data;
      var message = data;
      photoRef.putString(message , 'base64', { contentType: 'image/jpg' }).then((savedPicture) =&gt; {
        savedPicture.downloadURL().subscribe((datas)=&gt;{
          console.log(datas)
        })
  });
      
    });
  }
  </code></pre>