erisu commented on issue #1463:
URL:
https://github.com/apache/cordova-android/issues/1463#issuecomment-1217418459
Please upload a minimum reproduction repo that shows the issue.
I am still unable to reproduce the issue.
My test project had used:
**Config.xml**
```xml
<preference name="AutoHideSplashScreen" value="false" />
```
**index.js**
```js
document.addEventListener('deviceready', onDeviceReady, false);
function onDeviceReady() {
// Cordova is now initialized. Have fun!
console.log('Running cordova-' + cordova.platformId + '@' +
cordova.version);
document.getElementById('deviceready').classList.add('ready');
console.log('10 seconds timeout has been set');
setTimeout(function () {
console.log('10 seconds has passed. I will now hide the splash
screen.');
navigator.splashscreen.hide();
}, 10000);
}
```
**Logcat**
```log
2022-08-17 12:16:19.427 8661-8661/com.cdv.cordovaTest I/chromium:
[INFO:CONSOLE(27)] "Running [email protected]", source:
https://localhost/js/index.js (27)
2022-08-17 12:16:19.427 8661-8661/com.cdv.cordovaTest I/chromium:
[INFO:CONSOLE(30)] "10 seconds timeout has been set", source:
https://localhost/js/index.js (30)
2022-08-17 12:16:19.432 8661-8661/com.cdv.cordovaTest D/PluginManager:
postMessage: spinner
2022-08-17 12:16:29.428 8661-8661/com.cdv.cordovaTest I/chromium:
[INFO:CONSOLE(32)] "10 seconds has passed. I will now hide the splash screen.",
source: https://localhost/js/index.js (32)
2022-08-17 12:16:29.428 8661-8718/com.cdv.cordovaTest
D/CordovaSplashScreenPlugin: navigator.splashscreen.hide() was called and now
setting the keepOnScreen to false.
2022-08-17 12:16:29.428 8661-8718/com.cdv.cordovaTest
D/CordovaSplashScreenPlugin: Splashscreen is hidden.
```
**Video Reference**
[10-second-splash-screen.webm](https://user-images.githubusercontent.com/1029107/185028086-3a1aad1b-fab4-49cf-885b-aed107cd0da1.webm)
**Additional Notes**
I added two additional log printout lines in `SplashScreenPlugin.java` which
displays the last two lines in the adb logcat.
```log
2022-08-17 12:16:29.428 8661-8718/com.cdv.cordovaTest
D/CordovaSplashScreenPlugin: navigator.splashscreen.hide() was called and now
setting the keepOnScreen to false.
2022-08-17 12:16:29.428 8661-8718/com.cdv.cordovaTest
D/CordovaSplashScreenPlugin: Splashscreen is hidden.
```
This shows that the native side of the code, that can only be triggered by
the `.hide` action was executed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]