When using url_launcher with following code, the token is not taken into account in iOS and Android simulators. It opens the url starting with login page, while with the 'Authorization' header and token it should already be considered a logged in user.
The same code works on Flutter Web in all modes (inAppWebView, inAppBrowserView, externalApplication), and the page opens with the user already logged in.
Future<void> _launchInWebView(Uri url) async {
try {
await launchUrl(url, mode: LaunchMode.inAppWebView,
webViewConfiguration: WebViewConfiguration(
headers: EndUserApiRequest.ssoHeaders
));
} on Exception catch (e) {
if (kDebugMode) print(e.toString());
}
}
As you can see in this screenshot, the token headers are included in the call.
