How to make an android/iOS system event listener in ionic 2?

In app I want to make an event listener for example for a known number’s call or sms message arrive to perform an action. is there any idea how to do that, even if application is not running on background?