Why is the status bar black?

I used StatusBar.styleLightContent(); in .run()
and <preference name="StatusBarStyle" value="lightcontent" /> in config.xml

Why is the status bar black on startup?

image

Have you included Cordova plugin?

Yes. And the status bar becomes white after the splashscreen