You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the news is fetched only from indian source. Add the feature to fetch news based on user location.
The process to do this is quite simple. Currently the API used to fetch headlines has "in" as one of the query parameters. We need to get the present location of the user and based upon that change the query parameter.
The text was updated successfully, but these errors were encountered:
@sridharjajoo Can you help me in finding the right function to find the country code?
I tried various codes by searching on StackOverflow but in all the codes I am getting the same problem that the location is been shown null.
You can find out the current location of the user let's say India, Australia etc. Then you can create a map in which the key can be the country and value can be the country code
Currently the news is fetched only from indian source. Add the feature to fetch news based on user location.
The process to do this is quite simple. Currently the API used to fetch headlines has "in" as one of the query parameters. We need to get the present location of the user and based upon that change the query parameter.
The text was updated successfully, but these errors were encountered: