Volume Setting on App Open

I made a shortcut some time in the past that would set my volume to 50% when I opened Duolingo. Worked great. Now, in iOS 14 it changes the ringer volume relegating the shortcut useless. Thanks in advance for any assistance.