enter image description hereI just want to know some thing,.. I am practicing API Integration in Flutter.. From a Video tutorial I made a weather app which tell us weather but in the app I have declare a cityname: every time I open the app it tells me the weather of that specific city,( this is all I made through a tutorail)
then I made some changes in it and make a texfield for city and when I enter any city it tells me the weather of that city..
Know I want that the app detects the location from user and tell the user weather of his location in which he is,, for that i use GEO locater package and when i open the app it is working fine but when i send the apk to a friend which is in a different city he got an error which is :
ClientException with SocketException: Failed host lookup: ‘api.openweathermap.org’ (OS Error: No address associated with hostname, errno = 7), uri=https://api.openweathermap.org/data/2.5/ forecast?q=Islamabad&APPID=70c3ab0d0010e219257 7ba5de02a5030
can any one please tell me what I can do
I want when any one opens the app, the app will show weather according tu his current location