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? |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
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