Call API even if Ionic app is closed

Hi friends,
Is there any way to call API even if app is closed ,by using set interval i am able to call the API but only when app is opened,I want this to work even when app is closed . My scenario here is I need to call the API for every 5 minutes and based on the response,I need to schedule local notification based on it.Can anyone suggest me if there is any way to do this

Please think of your users who do not want your app munching their battery.

Look into “Ionic Native background mode”.

But yeah, sounds like a terrible app eating my battery. What functionality do you want to do each 5 minutes?