Skip to content
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

cordova plugin splash sceen not working in android11 for cordova #335

Closed
limrahsoft opened this issue Jul 19, 2022 · 2 comments
Closed

cordova plugin splash sceen not working in android11 for cordova #335

limrahsoft opened this issue Jul 19, 2022 · 2 comments

Comments

@limrahsoft
Copy link

limrahsoft commented Jul 19, 2022

can you please suggest that , how to implement splash screen for cordova app on android 11 for api 30 , 31 ,32

i need cordova implementation for splash screen , not anroid coding , as we only work with cordova hybrid apps

@breautek
Copy link
Contributor

breautek commented Jul 19, 2022

Android's new splashscreen have support in cordova-android@11. When updating to cordova-android@11, this cordova-plugin-splashscreen plugin is no longer compatible is now obsolete. It can be uninstalled unless if you also develop for the windows platform. If you do develop for the windows platform, then you should update this plugin to version 6.0.2 which prevents the android code from being installed when using cordova-android@11.

Splashscreen is a breaking change. Android's splashscreen system is not 100% compatible to what Cordova had before and some features that existed before have disappeared. Additionally, Android's splashscreens are very opinionated. Most of the splashscreen will be a solid color and you have a small amount of screen real estate to add an image, generally would be similar to your app icon. Documentation for the new splashscreen can be found in the Core Documentation which includes some examples, as well as a list of preferences. This documentation should be a good starting point.

We primarily use GitHub for tracking issues, so if you require further support, asking our Slack Community might be the best way to gain support. Alternatively you can also ask on StackOverflow.

If you think you've found a bug with cordova-android@11 relating to splashscreens, then please report it with the issue form filled out on the cordova-android repository.

@Lyfei
Copy link

Lyfei commented Apr 27, 2023

splashscreen

So how do I configure splashscreen when I use cordova-android@11. Using only icon will look deformed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants