Platform ready not working in ionic Android App version 6 but works fine in web

import { Platform } from ‘@ionic/angular’;
constructor(
private platform: Platform,
) {
this.initialize();
}
initialize() {
this.platform.ready().then(() => {
console.log(“App is ready to run”);
});
}