hector-jewell / hector-jewell/uber-eats-clone-using-react-native

Default Country Code Not Automatically Set According to User's IP Address in Enatega Multivendor Customer App.

Open
#1,200 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Issue: Default Country Code Not Automatically Set According to User's IP Address
Description:
Application currently sets the default country code as +92 for users during the login process. However, it does not automatically adjust the default country code based on the user's IP address or location.

Impact:
User Inconvenience: Users may find it inconvenient to manually change the default country code during login, especially when using the app while traveling or in different countries.

Reduced User Experience: The app's user experience could be improved by automatically detecting and setting the default country code based on the user's IP address.

Steps to Reproduce:

Open the app.
Start the login process.
Observe that the default country code is set as +92, regardless of the user's current location.
Expected Resolution:
The application should be updated to automatically detect the user's location or IP address and set the default country code accordingly during the login process. This enhancement will improve the user experience by reducing the need for manual adjustments and ensuring that the default country code is relevant to the user's location.

WhatsApp Image 2023-10-18 at 15 22 20_c72cac94

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the customer app's login flow and the code that sets the default +92 country code. Check how the country selector currently receives its value and identify the project's existing location or network-related entry points. Done means the login form selects a country code matching the user's location while still allowing manual changes, with the behavior verified across locations.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
authentication, internationalization, mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.