Hello @Claude31 I am that saying I could not find HTTPS connections using URLSession in the app, but i am using the HTTPS connection through plugin in flutter.
Also I given the code sample i am using in the app for reference @robnotyou @Claude31.
import 'package:http/http.dart' as http; // http plugin in flutter link : https://pub.dev/packages/http
import 'dart:convert';
// http get method
FutureListSample getSampleData() async {
ListSample list;
String basicAuthTest = 'Basic ' +
base64Encode(utf8.encode(
'${username}:${password}'));
String link = ‘https://sampleurl.com';
var res = await http.get(
link,
headers: {"authorization": basicAuth},
);
if (res.statusCode == 200) {
var data = json.decode(res.body);
var rest = data["result"] as List;
}
return list;
}
}
Thank you,
Regards
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: