Can't set push notitification sound when app in background - react native firebase The 2019 Stack Overflow Developer Survey Results Are InNo notification sound when sending notification from firebase in androidreact native push notification soundsilent push notifications in react native appreact native with push notification run in backgroundFirebase push notification doesn't send notification on background using react-nativeHow to send push notification with image in react-native android using rnfirebaseHow to use custom sound for react-native-onesignal push notifications on android?Firebase Analytics for React Native AndroidReact Native - Can't access Firebase Push Notification in foreground in AndroidCustom notification sounds on Android O with React native & firebase

Identify boardgame from Big movie

Should I use my personal e-mail address, or my workplace one, when registering to external websites for work purposes?

Why didn't the Event Horizon Telescope team mention Sagittarius A*?

Are there incongruent pythagorean triangles with the same perimeter and same area?

Why can Shazam fly?

Do these rules for Critical Successes and Critical Failures seem fair?

Can you compress metal and what would be the consequences?

If a Druid sees an animal’s corpse, can they Wild Shape into that animal?

Origin of "cooter" meaning "vagina"

How to support a colleague who finds meetings extremely tiring?

How can I autofill dates in Excel excluding Sunday?

What does Linus Torvalds mean when he says that Git "never ever" tracks a file?

What is the meaning of the verb "bear" in this context?

Why not take a picture of a closer black hole?

Output the Arecibo Message

Am I thawing this London Broil safely?

Which Sci-Fi work first showed weapon of galactic-scale mass destruction?

Did 3000BC Egyptians use meteoric iron weapons?

Feature engineering suggestion required

FPGA - DIY Programming

What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?

Button changing it's text & action. Good or terrible?

What is the accessibility of a package's `Private` context variables?

slides for 30min~1hr skype tenure track application interview



Can't set push notitification sound when app in background - react native firebase



The 2019 Stack Overflow Developer Survey Results Are InNo notification sound when sending notification from firebase in androidreact native push notification soundsilent push notifications in react native appreact native with push notification run in backgroundFirebase push notification doesn't send notification on background using react-nativeHow to send push notification with image in react-native android using rnfirebaseHow to use custom sound for react-native-onesignal push notifications on android?Firebase Analytics for React Native AndroidReact Native - Can't access Firebase Push Notification in foreground in AndroidCustom notification sounds on Android O with React native & firebase



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















How can I change the default push notification sound when app is in the background on android device?
I am using react native firebase notification implementation (https://rnfirebase.io/docs/v5.x.x/notifications/introduction).



I placed file pew1.mp3 in the res/raw folder
I send the message with this payload




"to" : "XXXX",
"notification" :
"body" : "body",
"title": "title",
"sound":"pew1.mp3"




I tried with
1. "sound":"pew1" instead of "sound":"pew1.mp3"
2. "sound":"pew1.wav" with wav file in the resource folder










share|improve this question




























    1















    How can I change the default push notification sound when app is in the background on android device?
    I am using react native firebase notification implementation (https://rnfirebase.io/docs/v5.x.x/notifications/introduction).



    I placed file pew1.mp3 in the res/raw folder
    I send the message with this payload




    "to" : "XXXX",
    "notification" :
    "body" : "body",
    "title": "title",
    "sound":"pew1.mp3"




    I tried with
    1. "sound":"pew1" instead of "sound":"pew1.mp3"
    2. "sound":"pew1.wav" with wav file in the resource folder










    share|improve this question
























      1












      1








      1








      How can I change the default push notification sound when app is in the background on android device?
      I am using react native firebase notification implementation (https://rnfirebase.io/docs/v5.x.x/notifications/introduction).



      I placed file pew1.mp3 in the res/raw folder
      I send the message with this payload




      "to" : "XXXX",
      "notification" :
      "body" : "body",
      "title": "title",
      "sound":"pew1.mp3"




      I tried with
      1. "sound":"pew1" instead of "sound":"pew1.mp3"
      2. "sound":"pew1.wav" with wav file in the resource folder










      share|improve this question














      How can I change the default push notification sound when app is in the background on android device?
      I am using react native firebase notification implementation (https://rnfirebase.io/docs/v5.x.x/notifications/introduction).



      I placed file pew1.mp3 in the res/raw folder
      I send the message with this payload




      "to" : "XXXX",
      "notification" :
      "body" : "body",
      "title": "title",
      "sound":"pew1.mp3"




      I tried with
      1. "sound":"pew1" instead of "sound":"pew1.mp3"
      2. "sound":"pew1.wav" with wav file in the resource folder







      reactjs firebase react-native






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 8 at 9:41









      Devi DoviDevi Dovi

      62




      62






















          0






          active

          oldest

          votes












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55060469%2fcant-set-push-notitification-sound-when-app-in-background-react-native-fireba%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55060469%2fcant-set-push-notitification-sound-when-app-in-background-react-native-fireba%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          1928 у кіно

          Захаров Федір Захарович

          Ель Греко