-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AppIcon not displayed for Android 7 #23178
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Closed similar issues:
|
@Syed-RI I have an app in production compiled with 8.0.60 SR6 that is tested on physical devices with all supported Android versions including Android 7 and the app icon is showing correctly (despite its look not being the same as in latest Android versions). Image below is from a Samsung A3 2016 running Android 7 (last Android version supported on that device). So the issue you describe seems either device-specific or emulator related. |
Galaxy A3 (2016) is also 720 x 1280 so it does not seem to be the resolution. |
There is a caveat though: Samsung Android 7 devices use an icon container by default (visible in my image) which may hide the true issue you are facing on your device/emulator. So indeed worth checking further in case Android 7 is really important to you; but according to this chart the share of Nougat users is now less than 1.5% worldwide. |
This is for an enterprise app and we are committed to provide support for Android 7 and up. Besides, MAUI SDK itself supports Android 7 and up therefore I think this should be looked at. Probably needs a Resizetizer tweak? cc @mattleibow @Redth |
I'll have a look. This is very weird as we have not really changed anything and there should be a drawable fallback. |
OK, I managed to repro it... Not sure the issue yet as the images are there and the image works for Android 6.0. I typically test Android 6, 9, 10, 13, 14 since they are on borders of major OS changes. They all work on those I believe, so Android 7 is giving us gifts of joy it seems. |
I had a look and I see why this is happening:
This means that specifically for Android 7, the round icons are PNG files but for Android 8 they are adaptive icons. So, the first workaround is to just drop round icons altogether. This means you will lose round icons on all Android versions, but just involves deleting the If you still want round icons for new Android versions and maybe less concerned with the Android 7 app icon adherence to the "round" design, you could copy the generated icons from This will just be a copy of the "legacy" icons and pretend they are round. But, if that is not viable, then you can potentially generate the round ones using a graphics program and place them in the same location. As long as you name it all the same as the other icons, they will just work together. As soon as I have a fix for generating legacy round icons, I will link to it. |
Awesome Matt! We can live without the round icons so I'll look into it tomorrow. But IIRC, I have tried copying and pasting from resizetizer output and that broke the build as on next build resizetizer complained about same assets (i.e. appicon.png) being present in the dir. |
Yeah, make sure to copy the |
This PR has the fixes to generate round icons for Android 7 #23276 |
/similarissues |
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Closed similar issues:
|
Description
App icon in the launcher and task switcher is not displaying for Android 7. However, Android 8 and up works
![Task_Switcher_Android8](https://private-user-images.githubusercontent.com/100694732/341758245-7fff8ed3-edc8-4020-b572-b56ef850bd9c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA5OTczNDAsIm5iZiI6MTcyMDk5NzA0MCwicGF0aCI6Ii8xMDA2OTQ3MzIvMzQxNzU4MjQ1LTdmZmY4ZWQzLWVkYzgtNDAyMC1iNTcyLWI1NmVmODUwYmQ5Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxNFQyMjQ0MDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kZmQwOTU2Y2JmNmFjZjQzMDRiNGE3ZjQ4NGRhODI1YzJkM2ExMTJhM2YzYTZjNzYwY2M3ZTcwNWY4OTgzZjViJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.mC2EAMIYPSh_XfyBOZTOcWNTMXXzP9mVATyIdvlewbc)
![AppIcon_Android8](https://private-user-images.githubusercontent.com/100694732/341758252-9ac6ac5d-7423-4606-bac5-ec5f7d2cede7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA5OTczNDAsIm5iZiI6MTcyMDk5NzA0MCwicGF0aCI6Ii8xMDA2OTQ3MzIvMzQxNzU4MjUyLTlhYzZhYzVkLTc0MjMtNDYwNi1iYWM1LWVjNWY3ZDJjZWRlNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxNFQyMjQ0MDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hNWQ0MGZiMmEwMDU5M2M5YzRmM2QzODAwYjM0MDI5MGZlYjcxMDBjYTRhYjE3YTkzNjZhZjlkOGZkYjM5OWI3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.cLcAeBa-gY-HEpFGe4u_PiUrdQZ-2jn9EWTDHqimSk4)
![Task_Switcher_Android7](https://private-user-images.githubusercontent.com/100694732/341758254-adb58724-9f6d-492e-bf1b-38b6257d459f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA5OTczNDAsIm5iZiI6MTcyMDk5NzA0MCwicGF0aCI6Ii8xMDA2OTQ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aJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04MDY3NGM5OGI3ZjI4YjhhZDVmYWI3NWJjMjAzZjFmYzMxOWIxN2YyNTYxMzM5ZjkwYTZlNDU5OTMxYjExYjE5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.kOR33Jp45yMdYpda1lEdbVvHEFTH-eUGjpI-MeOQGM4)
Steps to Reproduce
Create a new maui app and deploy to an emulator running Android 7 (7.1.1) with a screen resolution of 1280 x 720. Or build and deploy the repro attached to same emulator.
Link to public reproduction project repository
https://github.com/Syed-RI/DeployTest
Version with bug
8.0.60 SR6
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 7.1.1
Did you find any workaround?
Works on Android 8 and up
Relevant log output
No response
The text was updated successfully, but these errors were encountered: