Ionic backgorund services when app is closed

How to call background services when app is closed?I want to call local notifications when app is closed using background services.