Enable Location Service when permission already given

Md. Tariqul Alam 0 Reputation points
2024-02-16T05:55:14.7433333+00:00

IMG_20240213_173615

Hello everyone, I am developing mobile apps using MAUI. User is already given permission to access location. When asking location after that Android OS is not calling api for giving notification to user enabling GPS service (Location Service) for UX (when GPS/Location service is disabled.). It is working fine when location service is enabled. I am using that method to get coordinates. Method: Geolocation.Default.GetLocationAsync Other apps like uber, foodpanda are showing that notification when location service is disabled (photo added).Please give me suggestion. Thanks.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,411 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.