Custom sound for push notifications not working in TestFlight

I have been trying to implement firebase push notifications in my app built using flutter. I used flutter local notifications package to customize the notification settings. I added custom sound functionality to the app, and my custom sound file is saved in the main app bundle.
Now, in my debug build, the notifications are being displayed with custom sound, but the moment i upload the app into testflight, there is no custom sound, just the default alert, when notifications are received.
I wanted to know if Apple is blocking it for lack of permissions or anything else of that sort, or if it is a code level issue.
Thanks a lot for your assistance.
It is a code level issue. Sounds like the issue specifically relates to the app’s Release build. All of the common causes of this type of problem are published at the following link, which includes the recommended workflow for testing and isolating Release build issues: 

TN2431 - App Testing Guide  
<https://developer.apple.com/library/content/technotes/tn2431/_index.html>

The problems covered are those which are frequently missed during development and can therefore surface in App Review, customer environments or distribution app testing. 

Custom sound for push notifications not working in TestFlight
 
 
Q