My application was working fine on local flutter web release version after deploying the application on firebase the launch url functionality not working and browser console gives this output
Future<void> _launchUrl(String url) async {
//Creating some problems during hosting works good on release version
try {
launchUrl(Uri.parse(url),
mode: LaunchMode.externalApplication, webOnlyWindowName: "_self");
} catch (e) {
print("This is error ${e}");
}
}
I tried every possible configuration setting for firebase hosting
"firestore": {
"rules": "firestore.rules",
"indexes": "firestore.indexes.json"
},
"hosting": {
"cleanUrls": true,
"trailingSlash": false,
"appAssociation": "AUTO",
"public": "build/web",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "/**",
"dynamicLinks": true
}
]
},
"storage": {
"rules": "storage.rules"
}
}