Apparently it is a problem with my device, probe with another constructor and it still gives me true. I’ll have to check on another Smartphone. Can someone tell me if I’m doing something wrong?
Well, I do not understand the truth … there are two modes of location ?. Because I put Set Location Sensor in False and the notifier is already visible and I do not update the map, but if I manually activate the sensor and start the app now it is giving false, but the sensor is activated … something does not fit here. …I do not know if it is because I use a grabber to my device and disable certain options that I do not know if they are activated or deactivated
It is because you have to manually activate the GPS, it is not possible to activate it from the app (or maybe you can do an Activity Action that does it). So the location is disabled. In Kodular there is only the option to activate and deactivate the GPS but so if you want or not to request permission to the application to use the GPS, but do not activate or deactivate it.
You have to ask the user to turn their location on. (Maybe via a notifier dialog).
Google Maps takes a similar approach. They show a dialog asking you to turn location on. If you agree, the location settings screen is opened (I’m talking about Android settings). The user can then turn on location from there. (You can open the location settings screen using the activity starter)
Due to security reasons, apps are not allowed to enable/disable location without the user’s consent.
When I have it deactivated, program a notification that asks the user to activate the GPS. When I activate it he keeps asking me to activate the GPS. So I have to deactivate the GPS function from the Floating Geolocation Icon, and then activate it again so that it detects that the GPS is activated.