Push notification action button callback not getting called in Ionic push

h
Hello, I answer your question


(<any>window).approve = function (data: any) {
      console.log('approve called ----------------');
      console.log("aqui el json de data " + JSON.stringify(data));
};

result: 
Line 268 : aqui el json de data [{"title":"Evento de Panico","message":" Se recibe el reporte de un evento de panico por parte de unos de los miembros de su grupo familiar.<br />Por: Johana vargas carrillo<br />Hora: 14:52:36<br />Preste Atencion y tenga cuidado. ","additionalData":{"content-available":"1","actions":[{"icon":"emailGuests","title":"ignorar","callback":"window.reject","foreground":"false"},{"icon":"notification","title":"ver en mapa","callback":"window.approve","foreground":"true"}],"panico":{"nombreReporto":"Johana vargas carrillo","latitud":11.2235652,"longitud":-74.1820007,"exactitud":23.922000885009766,"hora":"02:52:36 PM","tipo":"Panico"},"actionCallback":"window.approve","icon":"notification","notId":"150","dismissed":false,"comandosSecundarios":{"estado":"\null"},"coldstart":true,"foreground":false}}]

Action button does not call the methods when app is not running in background. Is there something I can do to initialise the app so that the callback method is initialised?

I have no idea what you are talking about. Please open a new topic of your own and describe your problem on your own and in more detail.