I now get the warning for “android_universal” and it seems that launch screens is no longer supported for Android, but I get the grey one with the Meteor logo and cannot figure out how to configure my own.
You are correct, but I cannot get to a solution from the information in the changelog. Perhaps I’m missing something, so I would love to hear from someone who has been able to get their app built with a non-meteor looking splash screen since 2.14
My best success is to look at what is generated in .meteor/local/cordova-build/resources and then to put these images in a cordova-build-override/resources folder where I can change them to my own images. Then I don’t need to put any config in mobile-config.js regarding these. Feels too hacky so I’m hoping there is a better way.
I’ve had quite a few variations of mobile-config and got warnings or errors all the way. I was surprised when I searched and couldn’t find anyone else having similar issues recently. My current mobile-config has nothing specified regarding icons and launchScreens and I’m just doing the override thing. If I can get a minimal repo going I’ll supply that instead, but not today.
I worked recently on a cordova fix just after the 2.14.x release. So I have been able to test this issue you mention on this post. And yes, I can confirm that splash screen is not working, at least on Android. In IOS it loads the gradient I added properly.
@jacoatvatfree: By a chance, do you have your splash screen in .jpg format?
I used that format on my splash screen example and it worked on IOS but suddenly after 2.14 Meteor version it didn’t on Android. Looking into @matheusccastro 's example, I saw he uses .png, so I transformed my splash into this format, and suddenly it worked well.
The minimal repo is causing me headaches with gradle and java versions which I don’t have time to try and work through right now. I’m going to stick with the hacky solution of using cordova-build-override and will focus on 3.0 upgrades instead
Currently I’m seeing both the default meteor splash followed by my own splash screen. I’m baffled as to why, since in XCode assets for LaunchStoryboard I only see my own image. (found that some of my apps still had the launch-screen or the cordova:cordova-plugin-splashscreen packages included, removing these removed the double launch-screen)
Here’s a general approach to set a custom splash screen for Android in a Meteor project:
Remove Deprecated Keys:** Make sure that you have removed any deprecated or unknown keys in your App.launchScreens configuration. Review the documentation or release notes for Meteor 2.14 to ensure you are using the correct configuration.
Configure Splash Screen in Mobile Config:** Instead of using the launchScreens configuration, you might want to use the mobile-config.js file to configure the splash screen for both iOS and Android. Here’s an example:
Replace 'path/to/your/splash.png' with the actual path to your custom splash screen image.
3. Verify Image Path:** Ensure that the path to your custom splash screen image is correct, and the image file is present in the specified location.
Build and Test:** After making these changes, rebuild your Meteor project and test it on an Android device or emulator to see if the custom splash screen appears as expected.
If you are still facing issues, consider checking the Meteor forums, GitHub issues, or the official documentation for any updates or community discussions related to the specific version you are using. Sometimes, there might be additional adjustments or considerations depending on the Meteor plugins or packages you have in your project.