Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Add client code to perform IP geolocation and write the country to the app state #538

Closed
jwalgran opened this issue May 28, 2019 · 0 comments
Assignees
Milestone

Comments

@jwalgran
Copy link
Contributor

jwalgran commented May 28, 2019

Overview

Add a component that makes a request to a web service which returns client information based on IP address. Write the detected country to the app state.

Is your feature request related to a problem? Please describe.

We need to detect when users are browsing from China and update our client-side map resource loading accordingly.

Describe the solution you'd like

  • From the client, make a request to https://api.userinfo.io/userinfos
  • If available, write the value of country.code in the response to the Redux store.
  • This should only happen once, on page load
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant