Want help for create local notification in background java to reflect in ionic app when the app is closed?

we are doing some work with ibeacon now we are able to alive the service to scan beacons when the app is killed but we are unable to give local notification to the app which is closed.when the app is killed still we are able to execute the methods to scan ibeacons but we want to call the localnotification method with in this method show that it will trigger notification to app

Finally we are able to achieve this functionality we contributed to github.