I spent whole afternoon debugging for the status bar and found that I didn’t uncomment the following line in index.html.
<!-- cordova.js required for cordova apps (remove if not needed) -->
<!--<script src="cordova.js"></script>-->
I was developing PWA at first with ionic. I start migrating my PWA to app then facing this issue.