简体   繁体   English

启动画面在使用Cordova插件的phonegap应用中显示一次

[英]splash screen displayed once in phonegap app using cordova plugin

am creating one app on phone gap using cordova. 我正在使用cordova在电话间隙上创建一个应用程序。 facing one problem is that splash screen, i want to show that splash screen only one time in my app. 面临的一个问题是启动屏幕,我只想在我的应用程序中一次显示该启动屏幕。 means when user install that app first time spalsh screen displayed but when second time user open that app splash screen is not displaying. 表示当用户第一次安装该应用时显示该spalsh屏幕,而在第二次用户打开时未显示该应用初始屏幕。

if anybody have solution of this problem then please share your code or idea. 如果有人可以解决此问题,请分享您的代码或想法。

Thanks in Advance. 提前致谢。

In config.xml you can specify the splash screen for cordova application. 在config.xml中,您可以为cordova应用程序指定启动屏幕。

https://github.com/apache/cordova-plugin-splashscreen https://github.com/apache/cordova-plugin-splashscreen

Moreover, Splash screen plugin allows you to add functionality to your splash screen like when to hide splash screen and how many second splash screen should appear etc. So please take a look at the upper documentation. 此外,启动画面插件允许您向启动画面添加功能,例如何时隐藏启动画面以及应显示多少第二启动画面等。因此,请查看上方的文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM