jonbhanson / flutter_native_splash

Automatically generates native code for adding splash screens in Android and iOS. Customize with specific platform, background color and splash image.
https://pub.dev/packages/flutter_native_splash
MIT License
1.29k stars 202 forks source link

Android 12 still displaying app icon as splash image #427

Closed Prince-Kd closed 1 year ago

Prince-Kd commented 1 year ago

Even after setting the image under android 12, the app icon still shows as the splash image

jonbhanson commented 1 year ago

Please supply your config and a screenshot of the splash. Have you read the readme notes on Android 12?

arnirichard commented 1 year ago

``Screenshot_20220926-041507

My Android 12 app splash looks like this, my config is


  color: "#BCBCBC"
  image: "assets/icons/boat_blue_1024.png"
  android_12:
    image: assets/icons/boat_blue_960.png
    color: "#BCBCBC"
    icon_background_color: "#BCBCBC"```
jonbhanson commented 1 year ago

@arnirichard I see a splash page with color #BCBCBC and a boat, and a config that has color #BCBCBC and a boat. Is there a problem? Also, I have no context - are you the same user as @Prince-Kd, posting the follow up info I requested, or do you have your own problem?

arnirichard commented 1 year ago

@jonbhanson I was expecting that the icon would fill the white area. I was wondering if that is the same problem as reported. Is this expected look?

jonbhanson commented 1 year ago

Please post your 'assets/icons/boat_blue_960.png' image.

arnirichard commented 1 year ago

boat_blue_960

arnirichard commented 1 year ago

It is 960x960

jonbhanson commented 1 year ago

I ran your config and this is how it appeared for me.

I don't know why yours looks different. Send me your app source (stripped out if necessary) if you'd like me to check further.

Screen Shot 2022-09-26 at 9 00 32 AM
arnirichard commented 1 year ago

Thanks, I will investigate and report here my findings.

jonbhanson commented 1 year ago

If you are using a non-google launcher, you may want to try running it on a Google emulator. Some of the non-google launchers don't seem to be handling the splash according to Google's specs yet on Android 12.

arnirichard commented 1 year ago

I am using a Samsung device, but I will try Google, thank you

arnirichard commented 1 year ago

@jonbhanson I am getting the same as you on Pixel emulator. How can I at least fix that?

arnirichard commented 1 year ago

@jonbhanson I created an image 1500x1500 and then placed the 1024x1024 in the center, then it appears ok, but it is a hack

arnirichard commented 1 year ago

I gues this mean the pic should be 960x960 and the icon should be 640x640, I will try that

Please note that the splash screen will be clipped to a circle on the center of the screen.

# App icon with an icon background: This should be 960×960 pixels, and fit within a circle
# 640 pixels in diameter.
arnirichard commented 1 year ago

Yeap, Google is fixed now, but it was confusing that Samsung is behaving differently. Thanks.

jonbhanson commented 1 year ago

Sounds like this is OK to close?

arnirichard commented 1 year ago

@jonbhanson I think the initial problem sounds like he uses Samsung, there is little to do about it.

apoorvpandey commented 1 year ago

Hi @jonbhanson I am using the same package and on every device It is showing splash as App Icon, What's the issue? please help!!!

jonbhanson commented 1 year ago

@apoorvpandey please open a new ticket and make sure to fill all the details that you will find in the new bug ticket template.

apoorvpandey commented 1 year ago

Hi @jonbhanson I am using the same package and on every device It is showing splash as App Icon, What's the issue? please help!!!

My Config:

flutter_native_splash: color: "#ffffff" image: assets/images/man.png android_12: image: assets/images/man.png color: "#ffffff"

apoorvpandey commented 1 year ago

@apoorvpandey please open a new ticket and make sure to fill all the details that you will find in the new bug ticket template.

Thanks for the quick response, highly appreciate that. I have raised a new issue with details please check. Thanks in advance!