iOS Question Detect the change in the general volume or at least be able to know it


Licensed User
Longtime User
I need to be able to detect the event of raising or lowering the general volume of the music or at least be able to know the current volume. I tried some example that we have in the forum, but nothing works for me, it gives me volume 0.

Can someone help me how to get it?