Hello,
I have an Fmx Android app.
When the user click a button, I need to store the current location in the database.
I used this code at first:
TMSFNCLocation.GetLocation(
procedure(const ARequest: TTMSFNCLocationRequest; const ARequestResult: TTMSFNCCloudBaseRequestResult)
Begin
ShowMessage(ARequest.Coordinate.Latitude.ToString+':'+ARequest.Coordinate.Longitude.ToString);
End
) ;
This app works well if I compile it for Windows, however on Android it gives me back '0:0' as location.
I do have "Access fine location" and "Access course location" permissions, also Google Maps can show the current location without any problem.
What is wrong? Thank you!