I used StatusBar.styleLightContent(); in .run()
and <preference name="StatusBarStyle" value="lightcontent" /> in config.xml
Why is the status bar black on startup?

I used StatusBar.styleLightContent(); in .run()
and <preference name="StatusBarStyle" value="lightcontent" /> in config.xml
Why is the status bar black on startup?

Have you included Cordova plugin?
Yes. And the status bar becomes white after the splashscreen