I am trying to fetch the data but i am only getting latitude but not longitude,
Are You Manually Storing Data ?
If Yes So Include Data Like This
"\" Your Data \""
NO, The data storing according to the phone’s location…
Try To Store Lik This
The data is stored automatically …
This Is Working For Me
OKAY I WILL TRY
See, You need to store the data when value of the lat or lon is not equal to 0, add an if with this condition and everything will be fine.
I tried a lot but still its not working and showing the same error.
you tried as i said?
check the text of the tag with which you save the longitude
first try to show your got value in a label to make sure you are getting data from firebase correctly
I can’t see it well but I think the tags don’t match you, as regards the first case with the longitude
no this is not by location change block
no i am not getting any data
then error is in firebase configuration or tags
Try to come out from the room outside under the sky. ANd test whether the data is being sent to Firebase. Sometimes while we sit inside the house, the GPS wont work properly