S Stefano Di Chiano Active Member Licensed User Nov 3, 2020 #1 Hi, I'm having a problem with the Geolocation library. Everytime I run my app it doesn't get my location. I thought the problem could be related to me being indoor, but if I go on Google maps for instance, it works well and tell me exactly where I am, so my position can be traced. The following Log: B4X: Copy Log($"GeoLocation_Location(${success}, ${Lattitude}, ${Longitude}, ${info}, ${isMockLocation})"$) gives me the following result: B4X: Copy GeoLocation_Location(false, 0.0, 0.0, Unble to Trace your location, false) Another thing I noticed is that after I check my position on Google maps, then my app works as well. I don't know exactly how GPS works, so I was wondering if someone could help me understand what the problem is and how to solve it. Thanks.
Hi, I'm having a problem with the Geolocation library. Everytime I run my app it doesn't get my location. I thought the problem could be related to me being indoor, but if I go on Google maps for instance, it works well and tell me exactly where I am, so my position can be traced. The following Log: B4X: Copy Log($"GeoLocation_Location(${success}, ${Lattitude}, ${Longitude}, ${info}, ${isMockLocation})"$) gives me the following result: B4X: Copy GeoLocation_Location(false, 0.0, 0.0, Unble to Trace your location, false) Another thing I noticed is that after I check my position on Google maps, then my app works as well. I don't know exactly how GPS works, so I was wondering if someone could help me understand what the problem is and how to solve it. Thanks.
Erel B4X founder Staff member Licensed User Longtime User Nov 4, 2020 #2 You should use FusedLocationProvider to get your current location. Upvote 0
S Stefano Di Chiano Active Member Licensed User Nov 4, 2020 #3 I'll take a look at it, thanks! Upvote 0