Handle app restores from background

Hi Im new to ionic,

I have build a app, and i ve used a plugin “@ionic-native/app-minimize”: “^4.20.0”

this plugin minimise the app on button click, when i again open the app i need to call a function like init()…

please help…

I ve tried

ionViewDidLoad() {
alert(“ionViewDidLoad”);
}

not worked…

fix:

platform.ready().then(() =>
{
platform.resume.subscribe ( (e) => {
this.ngOnInit();
});
});

thanks,
vignesh