Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Commit e056943

Browse files
committed
📝 Issue #2507: Delete Android channel and recreate it in order to change sound file???
1 parent 31447c5 commit e056943

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎docs/PAYLOAD.md‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,13 @@ The third is the empty string which will cause for the playing of sound to be sk
634634
}
635635
```
636636

637-
In order for your your notification to play a custom sound you will need to add the files to your Android project's `res/raw` directory. Then send the follow JSON from FCM:
637+
In order for your your notification to play a custom sound you will need to add the files to your Android project's `res/raw` directory. The best way to do this is by using a `resource-file` tag in your `config.xml`.
638+
639+
```xml
640+
<resource-file src="assets/sound/test.mp3" target="app/src/main/res/raw/test.mp3" />
641+
```
642+
643+
Then send the follow JSON from FCM:
638644

639645
```json
640646
{

0 commit comments

Comments
 (0)