Flutter HTTPS calls fail on older Android, only works if I bypass SSL certificate check #2480
|
I'm building a Flutter app and HTTPS API calls fail only on older Android phones(Android 7 and below). With this override enabled, API requests work even on old devices. Why do old Android devices reject the HTTPS request? Is the issue caused by:
What is the correct fix? |
Answered by
AlexV525
Jan 16, 2026
Replies: 1 comment 2 replies
|
IIRC, if you are running on versions older than Android 8, there are some new root certificates missing from those old systems. One thing you can try is injecting those certs by overriding the configuration The override sample I've wrote before: https://gist.github.com/AlexV525/352a8199716d2fa830a9ee5d8ab3aafe |
2 replies
Answer selected by
akhil-ge0rge
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
IIRC, if you are running on versions older than Android 8, there are some new root certificates missing from those old systems. One thing you can try is injecting those certs by overriding the configuration
HttpOverrides.The override sample I've wrote before: https://gist.github.com/AlexV525/352a8199716d2fa830a9ee5d8ab3aafe