-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Splash screen bug #18890
Comments
I'm testing this with 8.0 on an M1 Mac using Xcode 15.0. I think the black screen is related to xamarin/xamarin-macios#18469. Applying the workaround I see the SVGs, both of them.
If I remove the base size altogether, OR if I set the base size to I opened the SVG and noticed is had some hidden assets and it's an odd size even though the art is square. I removed the hidden art and resized the image to 300x300, also updating |
I just tried to add the Codesign PropertyGroup in my csproj, but that didn't help. And unlike others who commented on #18469, I do have a Developer Account and valid codesigning keys configured. This forced me to continue to check the SVG using Android, but the issues get even worse there. To clarify, what I'm trying to achieve is to have the application logo in the middle and the company logo at the bottom (similar to what you see in with the Instagram or WhatsApp apps, with the Meta logo at the bottom, or Outlook/Excel/Word/Teams/PowerPoint and the Microsoft logo at the bottom). The issue here is that if I use Android 11 to test the app, the SVG is way to large and despite explicitely configuring Resize="true", the logo is outside the screen bounds On Android 12.1, the splash doesn't appear at all: And finally, on Android 13, the splash is tiny and impossible to read: In this regard, I'd argue that the MauiSplashScreen doesn't actually resize the splash screen as expected and the fact that the splash screen may or may not show up is counterintuitive. |
Both issues are related to known changes by the platform:
I am not sure there is much we can do for Android as we have no way of changing this splash layout. The only way to move forward is to make all apps be a small, centered splash. Let me know if this helps because I think that until Google changes something this is the way it will work. |
Hi @iamalexmang. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
@iamalexmang you can also disable the MAUI splash generation and make your own using the platform methods. As the last line of that splash screen documentation says "For more advanced splash screen scenarios, per-platform approaches apply." These older Xamarin docs may be helpful if you need a refresher on how the platforms work, and you can refer to Apple and Google's docs directly for the latest guidance. In .NET MAUI implement this in the Platforms folder. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. |
Description
Hi,
I'm having issues related to changing a splash screen on my app.
Originally, I thought there was an issue with my SVG, but I then learnt that there might be something different to it. Specifically, no matter how many changes I applied to the same file, the same splash was always rendered.
Later, I realized that I should validate that the new splash screens are even considered by MAUI, so I decided to have new file names and based on this comment from thread #17940, I decided to re-run the application following this flow:
The bug is here: after days of frustration, I realized that SVGs I expected would show up, never show up (there's just a blank screen). What I later found is that if I apply the original svg (saved as splash1.svg), the splash shows up. Yet the exact same file content, called splash7.svg, once configured as my splash screen, doesn't show up. This is the exact same content (down by the character), but with a different name.
This suggests that the bug is rather in MAUI and has nothing to do with my file. Or there's something else I'm missing...
Steps to Reproduce
I'm providing these SVG files, virtually the same, but with different names.
This renders a blank screen:!
This renders a logo screen:
Link to public reproduction project repository
No response
Version with bug
7.0.101
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android
Affected platform versions
No response
Did you find any workaround?
Not yet
Relevant log output
No response
The text was updated successfully, but these errors were encountered: