Confirmed users
716
edits
No edit summary |
|||
Line 79: | Line 79: | ||
In order to get access to anything more than the "normal" channel, the application needs to enumerate these channels in the permissions property in the app manifest. So something like: | In order to get access to anything more than the "normal" channel, the application needs to enumerate these channels in the permissions property in the app manifest. So something like: | ||
permissions: { | permissions: { | ||
... | |||
audio: { | |||
channels: ["notification", "alarm"] | |||
}, | |||
... | |||
} | } | ||
This would enable the app to play sound through both the "notification" channel and the "alarm" channel. | This would enable the app to play sound through both the "notification" channel and the "alarm" channel. | ||
I'm not sure if we need to have prompts if non-privileged apps try to use channels beyond the "normal" or "content" channels. | I'm not sure if we need to have prompts if non-privileged apps try to use channels beyond the "normal" or "content" channels. |