I used to use a custom sound for notifications saved in res/raw
. It is a requirement to not allow another application to use this sound.
With Android 8 notification channels I was able to make a workaround with redirecting a user from system notification preferences to app preferences from where I could show custom sound among other android provided sounds. And when a user changed notification sound new notification channel was created.
Now I got to the next level and I need to provide this sound for Firebase cloud messaging while an app is in the background.
UPDATE: I need to rely on High Priority messages and notification tray handler so data message is (probably) not solution for me.
So long story short: Can I make custom sound available from system app settings only for my application (including Firebase push notifications)?