Close notifications for default messaging app when secondary messaging app views message

I have created a SMS app that is created to be a backup to your default messaging app. It presents the user with a notification when a message is received so it can be used in only certain situations that the user finds fit. It is meant to be a secondary messaging app so it should not be set as the default.

Is there a way to implement the following functionality?

If the user receives a message and opens the message in my messaging app, the app should then lookup what the default messaging app is and cancel the notification so that the user does not have to go and close that additional notification after already responding to the message they received.