'How to Handle pushed notification call back in android

can anyone help me in android development, basically i have done a pushed notification using android and when push come i played a custom audio sound which works fine , But the thing is when user tap on the notification the sound needs to stop,

Basically I am new in android and don't know anything about android too

Will highly appreciated if someone help me in this



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source