Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

[Question] Launcher should allow for intent extras or does it?

Open ivandamyanov opened this issue 3 years ago • 0 comments

Description

Currently TryOpenAsync doesn't allow you to pass any sort of parameter to go down to the StartActivity call. Is it possible in some way using Xamarin.Essentials or do we need to re-implement if we want to pass arguments? I'm asking because I'm using TryOpenAsync as a way to open deep links but due to Android 12, deep links open the app with a splash screen without an icon in the middle.

There's an open issue on the google issue tracker and the official response was that this is by design. If we want the icon in the splash screen to appear when using deep links, the opening app should include this in the intent:

options.putInt("android.activity.splashScreenStyle", 1)

  • Version with issue: Xamarin.Essentials 1.5.3.2

ivandamyanov avatar Jan 21 '22 15:01 ivandamyanov