Comments (14)
Hi there. I added dark mode support for splash screens. This issue is on my to-do list, and I will look into it when I get the chance (no timeline, hopefully this year) if no one else has fixed it by then.
from cordova-plugin-splashscreen.
@terreng if you need any help let me know, I'll help you on this.
from cordova-plugin-splashscreen.
@terreng There is already a vote in progress for the release of 6.0.2.
Version 6.0.2 has updated the engine requirements to >=3.6.0 <11.0.0
. This plugin starting from 6.0.2 will not install for Cordova-Android 11.x. Obviously, if a user runs an older version of the plugin, it will install. Older versions that were released cant be changed, and usually patch releases for older major versions aren't performed.
PR that updated the engine requirements: #329
Also a note was added to the README.
There will be a major release, 7.0.0, that will remove all of the Android source code and documentation from this repo.
Documentation for settings that remain and the addition of the new Android 12 SplashScreen API is added to the cordova-doc repo and can be seen here.
from cordova-plugin-splashscreen.
Cordova-android10+ used Theme.AppCompact which is not compatible with our fix.
Hope soon plugin owner fix this.
from cordova-plugin-splashscreen.
Thanks for the solution, I'll wait for now, since I would prefer to use the native Android 12 SpashScreen instead of the plugin.
By the way, you should be able to add the reference to AndroidManifest.xml
from config.xml
, so you don't have to edit the AndroidManifest.xml
file, and if you remove the android platform and add it again, the changes are kept.
<platform name="android">
<resource-file src="pathtoxml/splash_styles.xml" target="app/src/main/res/drawable/splash_styles.xml" />
</platform>
from cordova-plugin-splashscreen.
@ollm I have fixed this using hook
create file splash_styles.xml
<resources>
<style name="SplashTheme" parent="android:Theme.Light">
</style>
<style name="Theme.RemoveSplashScreenTheme" parent="SplashTheme">
<item name="android:windowIsTranslucent">true</item>
</style>
</resources>
You have to add this file instance in AndroidManifest.xml at MainActivity section.
from cordova-plugin-splashscreen.
Any news?
from cordova-plugin-splashscreen.
Hi there. I have an issue on Android 12 that SplashScreen didn't close when app init.
My app can run with Android under 12. I used cordova-plugin-splashscreen but with android 12 it show error like:
Msg: Native: tried calling SplashScreen.hide, but the SplashScreen plugin is not installed.
How can I solve this problem. Please help me
from cordova-plugin-splashscreen.
@hoatran2205 Hi there. It looks like you're using Ionic / Capacitor, which is not compatible with this plugin. Please let me know if I am mistaken.
from cordova-plugin-splashscreen.
App version
node: v10.0.1
ionic-native/splash-screen: v5.0.0
cordova-android: v8.0.0
cordova-plugin-splashscreen: 5.0.2
In ionic source, I use "@ionic-native/splash-screen/ngx" to call function to hide splash screen
When build app, I use "ionic capacitor run android" to build Adroid app
from cordova-plugin-splashscreen.
@hoatran2205 If you are using Ionic / Capacitor, then you should be using the Capacitor splashscreen API. It sounds like the issue you are experiencing is related to Ionic / Capacitor, so I suggest you seek help elsewhere.
from cordova-plugin-splashscreen.
Hi -
Any update on a new plugin version to deal with the new Android 12 splashscreen. I am getting an Android 12 extra splashscreen with my logo on a black background. I've changed to use android-targetSdkVersion 31 and now I just get the black background, no logo. I am hoping the next version of this plugin allows me to control this Android 12 splashscreen. I've tried all ideas suggested in this thread and none work. Maybe I can specify my own splashscreen or at least a white background. I also upgraded to the latest version of this plugin but didn't help. (I'm using Cordova 10.0.0 and android 9.0.0. Thanks so much! - Jon
from cordova-plugin-splashscreen.
Hi @jondspa. I added dark mode support for splash screens, and this Android 12 issue is on my to do list. I am hoping to create a fix for this issue in the next few months.
from cordova-plugin-splashscreen.
With the release of Cordova Android 11.0.0 yesterday, the Android 12 SplashScreen API is now supported. PR, docs. This issue should be closed. The readme for this plugin should probably be updated.
from cordova-plugin-splashscreen.
Related Issues (20)
- Why is there no IOS platform HOT 2
- show default cordova splash screen not real splash screen in iphone x HOT 1
- Fade options in browser
- unsafe areas behind notches in the screen. HOT 2
- Installation on ios and android HOT 2
- Splash screen is not hiding with this.splashscreen.hide() after migrated to cordova-ios >=6 HOT 8
- iOS splash screen loader not showing HOT 6
- Splashscreen start with statusbar in Cordova 10 HOT 1
- Splashscreen freeze in testflight but working in emulator HOT 2
- iOS Launch screen images do not display in emulator and required to be copied to a Xcode project folder HOT 1
- Why black screen before splash screen and white screen after splash screen in android? HOT 6
- Tried calling SplashScreen.hide, but the SplashScreen plugin is not installed on Android 12 HOT 6
- Showing multiple splash in android 12 HOT 1
- cordova plugin splash sceen not working in android11 for cordova HOT 2
- The icon is not shown on first launch. Background only. HOT 1
- Support Cordova-Android 12.0.0 (current version) HOT 3
- Disable Splash Screen on reboot HOT 2
- some things about `cordova-plugin-splashscreen` HOT 2
- Not able to upgrade for ionic 7 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-splashscreen.