I'm opening a twitter URL with the following code await Browser.OpenAsync(twitterUrl, BrowserLaunchMode.SystemPreferred);
in a project that targets Android API 33.
When running this on the emulator Android 13 opens the link in a browser. On the other hand Android 12 opens it with the Twitter app.
Is this expected behavior?
CodePudding user response:
First, you can check the settings / apps / twitter / Open by default
, does it open? If it does you can close it, then you can open the twitter in the Browser.
Second, the await Launcher.OpenAsync(twitterUrl);
method open the Url in the chrome and the await Browser.OpenAsync(twitterUrl, BrowserLaunchMode.SystemPreferred);
method open the Url in the app by using a webview powered by chrome.