[ https://issues.apache.org/jira/browse/CB-4853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Naguin updated CB-4853: -------------------------------- Description: Add the ability of automatically show the spashScreen when the app is loading as Android does, for example. --- I think that with this code on "MainPage.xaml.cs" is done: {code} private void showSplashScreen(int wait_ms) { var plugin = WPCordovaClassLib.Cordova.CommandFactory.CreateByServiceName("SplashScreen"); if (plugin != null){ plugin.InvokeMethodNamed("show", new object[] { String.Empty }); System.Threading.Timer timer = null; timer = new System.Threading.Timer( callback => { plugin.InvokeMethodNamed("hide", new object[] { String.Empty }); timer.Dispose(); }, null, wait_ms, System.Threading.Timeout.Infinite ); } } public MainPage(){ ... this.showSplashScreen(20000); } {code} was: Add the ability of automatically show the spashScreen when the app is loading as Android does, for example. --- I think that with this code on "MainPage.xaml.cs" is done: {code} private void showSplashScreen() { var plugin = WPCordovaClassLib.Cordova.CommandFactory.CreateByServiceName("SplashScreen"); if (plugin != null){ plugin.InvokeMethodNamed("show", new object[] { String.Empty }); } } public MainPage(){ ... this.showSplashScreen(); } {code} Add timeout to hide the splashScreen > Auto show splashScreen > ---------------------- > > Key: CB-4853 > URL: https://issues.apache.org/jira/browse/CB-4853 > Project: Apache Cordova > Issue Type: Improvement > Components: WP8 > Affects Versions: 3.0.0 > Environment: Any > Reporter: Jonathan Naguin > Assignee: Jesse MacFadyen > Priority: Minor > Labels: splashscreen, wp8 > > Add the ability of automatically show the spashScreen when the app is loading > as Android does, for example. > --- > I think that with this code on "MainPage.xaml.cs" is done: > {code} > private void showSplashScreen(int wait_ms) > { > var plugin = > WPCordovaClassLib.Cordova.CommandFactory.CreateByServiceName("SplashScreen"); > > if (plugin != null){ > plugin.InvokeMethodNamed("show", new object[] { String.Empty }); > System.Threading.Timer timer = null; > timer = new System.Threading.Timer( > callback => { > plugin.InvokeMethodNamed("hide", new object[] { String.Empty > }); > timer.Dispose(); > }, > null, > wait_ms, > System.Threading.Timeout.Infinite > ); > } > } > public MainPage(){ > ... > this.showSplashScreen(20000); > } > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira