Thank you for the answer
I tested it outside it still does not answer, the problem is that even before a GPS gives a position it takes the time to connect to the satellites but what I ask locationsensor to do is automatic is why it does not work no, if you can help me with a code that will make sure that when i activate locationsensor take the time to connect before sending me my position in latitude and longitude.
thank you