How to push location data into Firebase?


Hi all,

I have a app that uses Cordova/Phonegap native geolocation API that exists within Ionic.

My question is how do I push the data into the backend? In this case I use Firebase.

Right now I can get the Geolocation longitude and latitude coordinates to appear on the mobile phone but somehow cant make the data persists as a static data to be attached with the rest of the dataset, i.e for retrieval or querying.

Could someone who knows post that saving part of your code snippet? Also good if you could teach me how to do querying with the dataset.