{"_id":"561f764f61c0521700acc428","__v":9,"user":"54aa7f3f9bb00c0b00cb899b","parentDoc":null,"version":{"_id":"55781fe25129590d003ff4f7","project":"54aa7f773b56130b0056c86e","forked_from":"54aa7f773b56130b0056c871","__v":6,"createdAt":"2015-06-10T11:30:42.700Z","releaseDate":"2015-06-10T11:30:42.700Z","categories":["55781fe35129590d003ff4f8","55781fe35129590d003ff4f9","55781fe35129590d003ff4fa","55781fe35129590d003ff4fb","55781fe35129590d003ff4fc","55781fe35129590d003ff4fd","55781fe35129590d003ff4fe","564bbc7e8841060d00abb2ee","565b66c446118c0d00dcb0bb","56898269f8dc340d00308c13","582318b23b961a0f009516a1","594a848c9f4771001a43c959"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Developers","version_clean":"2.0.0","version":"2.0"},"category":{"_id":"55781fe35129590d003ff4fc","pages":["55781fe45129590d003ff50d","55781fe45129590d003ff50e","55781fe45129590d003ff50f","55781fe45129590d003ff510","55781fe45129590d003ff511","55781fe45129590d003ff512","55781fe45129590d003ff513","55781fe45129590d003ff514","55781fe45129590d003ff515","55781fe45129590d003ff516","55f692b4fe4cce21005c78b0","55f7e91e60cc850d008a7a45","56333cab9c607719001b85e4","564462ed9ce94c0d00068ce9","564f54fa48a1df1700836653","565ee9e7413e06170093dde0","5661a8fdb401c70d00dde6fa","5671348860c8e70d006c96a1","568ce9707d3bf02300aa7734"],"version":"55781fe25129590d003ff4f7","__v":10,"project":"54aa7f773b56130b0056c86e","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-01-05T12:44:00.338Z","from_sync":false,"order":4,"slug":"android-sdk","title":"Android SDK"},"githubsync":"","project":"54aa7f773b56130b0056c86e","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-10-15T09:47:59.107Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":13,"body":"[block:callout]\n{\n  \"type\": \"danger\",\n  \"title\": \"Android Compatability\",\n  \"body\": \"Please note that due to changes made by Android, custom push notification sounds will not work for Android version 8 and 9 and later versions. All previous versions of Android are unaffected.\"\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"success\",\n  \"body\": \"Please make sure that you're familiar with the [Running the Pulsate SDK](https://pulsate.readme.io/v2.0/docs/running-the-pulsate-sdk-android) tutorial.\"\n}\n[/block]\nYou can set a custom sound for Pulsate sound notifications in your app. All you have to do is  add the sound to your project.\n\nAll custom sounds should be placed in the *\"raw\"* folder.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/Shf0aidQOiqXiva2BdYT_Zrzut%20ekranu%20(11).png\",\n        \"Zrzut ekranu (11).png\",\n        \"650\",\n        \"750\",\n        \"#3465b1\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\nYou can now set *sound=\"customsound.mp3\"* in the push notification and the push notification will play the selected sound.\n\n[Supported audio formats](http://developer.android.com/guide/appendix/media-formats.html)\n\nYou can add multiple custom push sounds to your app. When you are sending configuring the push notification on Pulsate, click on Advanced Options and switch on Notification Sound. You can then enter the name of any of the audio files that you added to your app project and that audio file will be played when a user received that push notification.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/4d0cb46-Screenshot_2017-02-27_17.38.12.png\",\n        \"Screenshot 2017-02-27 17.38.12.png\",\n        469,\n        792,\n        \"#f7f7f6\"\n      ],\n      \"caption\": \"Push Notification Sound\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"adding-custom-push-sounds-android","type":"basic","title":"Adding Custom Push Sounds"}

Adding Custom Push Sounds


[block:callout] { "type": "danger", "title": "Android Compatability", "body": "Please note that due to changes made by Android, custom push notification sounds will not work for Android version 8 and 9 and later versions. All previous versions of Android are unaffected." } [/block] [block:callout] { "type": "success", "body": "Please make sure that you're familiar with the [Running the Pulsate SDK](https://pulsate.readme.io/v2.0/docs/running-the-pulsate-sdk-android) tutorial." } [/block] You can set a custom sound for Pulsate sound notifications in your app. All you have to do is add the sound to your project. All custom sounds should be placed in the *"raw"* folder. [block:image] { "images": [ { "image": [ "https://files.readme.io/Shf0aidQOiqXiva2BdYT_Zrzut%20ekranu%20(11).png", "Zrzut ekranu (11).png", "650", "750", "#3465b1", "" ] } ] } [/block] You can now set *sound="customsound.mp3"* in the push notification and the push notification will play the selected sound. [Supported audio formats](http://developer.android.com/guide/appendix/media-formats.html) You can add multiple custom push sounds to your app. When you are sending configuring the push notification on Pulsate, click on Advanced Options and switch on Notification Sound. You can then enter the name of any of the audio files that you added to your app project and that audio file will be played when a user received that push notification. [block:image] { "images": [ { "image": [ "https://files.readme.io/4d0cb46-Screenshot_2017-02-27_17.38.12.png", "Screenshot 2017-02-27 17.38.12.png", 469, 792, "#f7f7f6" ], "caption": "Push Notification Sound" } ] } [/block]