You set the TV to use optical but for reasons I can't guess some apps have their own sound menu for you to set. As there is no standard I find myself looking through the app's menu about sound.

If there is no sound, be sure to set the TV and apps to only send Stereo or PCM. Some receivers are silent when you send other audio formats.