2

I am using onesignal and I have 2 different sound options for notifications. However, in my keep.xml, which sound I write is the only one playing. My keep.xml:

<?xml version="1.0" encoding="utf-8"?>
<resources
    xmlns:tools="http://schemas.android.com/tools"
    tools:keep="@raw/money_notification"/>

For example, in this situation my notifications only play money sound and if I change it to bird_notification, only bird sound plays. I want to add both bird_sound and money_sound to tools:keep but I could not figured out the syntax. What is the syntax for it? Thanks in advance.

3
  • Have you found a solution yet?
    – ZeroCode
    Mar 14, 2022 at 19:48
  • @ZeroCode just seperate with comma. tools:keep="@raw/money_notification,@raw/bird_sound"/>
    – aoiTenshi
    Mar 16, 2022 at 8:07
  • Yes, add this as an answer to your question.
    – ZeroCode
    Mar 21, 2022 at 23:37

1 Answer 1

0

You can just seperate different sound paths with comma.

tools:keep="@raw/money_notification,@raw/bird_sound,..."/>

like this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.