How my app can detect when emergency contacts is being messaged to?

Is there a way for my app to know that a phone number has just been messaged to or a call to 911 just started? Or SOS has just been executed by the user?

How my app can detect when emergency contacts is being messaged to?
 
 
Q