title: Ionic 4 - Firebase - Storage not sending data to realtime Database
body: <p>I'm uploading images to Firebase storage, and then i want them to go to the real time database, this code was working in ionic v3, but now it seems something is wrong since the data goes to the storage but not to the database.</p>
  
  <pre><code>    createPost(picture: string): Promise&lt;any&gt; {
  
          firebase.storage().ref('/home/')
              .child('picture.jpg')
              .putString(picture, 'base64', { contentType: 'image/jpg' })
              .then((savedPicture) =&gt; {
                  firebase.database().ref('Home').push({
                      picture: savedPicture.downloadURL
                  }).then(() =&gt; {
                      alert('Sucess');
                      this.navCtrl.navigateRoot('/home');
                  })
              });
          return
  }
  </code></pre>