Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Requests not Working on 4g #96

Open
AliPunjabi opened this issue Aug 3, 2023 · 0 comments
Open

Requests not Working on 4g #96

AliPunjabi opened this issue Aug 3, 2023 · 0 comments

Comments

@AliPunjabi
Copy link

My flutter app is working good on all android versions except greater than 10 while using mobile data, I checked it on Samsung A71 having android 13 and it worked on both wifi and 4g but the same apk is not working on other mobiles like pocco/oppo having android version greater than 10, I am using http in my url.
Here is my code
Future<dynamic> requestDataFromNetwork( {String urlFile, dynamic body, BuildContext context}) async { var response; var baseURL = '${Globals.baseUrl}/$urlFile'; try { response = await Requests.post(baseURL, body: body, timeoutSeconds: 30, persistCookies: true); return response.body.toString(); } catch (e) { return response = ''; } }
This is my dependency: requests: ^4.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant