AhmedRaisi / Tarsho

A vibrant marketplace app for entrepreneurs to offer services, supporting local businesses with a user-friendly platform.
Other
5 stars 6 forks source link

Implement User Location Tracking on Login #119

Open AhmedRaisi opened 10 months ago

AhmedRaisi commented 10 months ago

Description: The objective is to enhance the Tarsho application by implementing a feature that captures and stores the geographical location (latitude and longitude) of users when they log in. The application will prompt the user for permission to access their location data. Upon consent, the user's current geographical coordinates will be automatically retrieved and stored in their user profile. This feature will facilitate location-based services and improve the overall user experience.

Acceptance Criteria:

Location Permission Prompt: When a user logs in, the application should prompt for permission to access the user's geographical location.

Automatic Location Retrieval: If the user consents, the application should automatically retrieve the user's current latitude and longitude.

Location Data Storage: The retrieved location coordinates should be stored in the user's object in the database.

User Privacy Compliance: The application should comply with user privacy and data protection laws, ensuring that the location data is handled securely and ethically.

Fallback for Denied Permissions: In cases where the user denies location access, the application should handle the denial gracefully, without hindering the user's ability to use the app. There should be a default location in case they deny.

Accuracy and Efficiency: The location retrieval process should be efficient and provide accurate geographical coordinates.

Guilherme-Branchieri commented 10 months ago

I can do it!!