Schedule task weekly

Hi,

I have been searching for related topics but I didn’t find any which help me. I want to schedule a task to do each week (even if I can, each two weeks). I was seeing about BackgroundMode plugin, but I read it’s not for long periods like this (battery life). I found about Background task in Capacitor (https://capacitor.ionicframework.com/docs/apis/background-task/), but I think it’s the same proble (or maybe not). Any idea?

Thanks a lot in advance!