Ionic run funcrion every X minutes

hi ,
now i send api to server to 60 minutes bu it’s work when i open page
i need it’s working in background

i used it but not working

this.backgroundMode.enable();

this.backgroundMode.on("activate").subscribe(()=>{

  console.log("backgroundMode")

 });

 this.backgroundMode.isActive(); // => boolean

idea i’ve counter
<countdown-timer (zeroTrigger)=“EndFunction(x.id)” [end]=“expired_date | date: ‘yyyy-MM-dd HH:mm:ss’”>

when it’s end called function EndFunction()
but it’s work if i open page only