I'm using ChromeSafariBrowser in my app. I have a problem when running the app on an Android device which has a browser other than Chrome set as the default browser. In this case, the ChromeSafariBrowser is not running and InAppBrowser is launched with the device's default browser. What should I do to fix this problem?
I want to launch with chrome, even if the user sets another default browser.
final ChromeSafariBrowser browser =
new ChromeSafariBrowser(new InAppBrowser());
await browser.open(
url: loginUrl,
options: ChromeSafariBrowserClassOptions(
android:
AndroidChromeCustomTabsOptions(addDefaultShareMenuItem: false,
packageName: "com.android.chrome"),
ios: IOSSafariOptions(barCollapsingEnabled: true)));