Skip to content

Commit

Permalink
(Android) doc: Add note regarding creating new notification channels …
Browse files Browse the repository at this point in the history
…for each new sound.

Relates to #560.
  • Loading branch information
dpa99c committed Mar 30, 2021
1 parent 49ea260 commit 4a5194b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1765,6 +1765,8 @@ A default channel is created by the plugin at app startup; the properties of thi

Calling on Android 7 or below or another platform will have no effect.

Note: Each time you want to play a different sound, you need to create a new channel with a new unique ID - do not re-use the same channel ID even if you have called `deleteChannel()` ([see this comment](https://github.com/dpa99c/cordova-plugin-firebasex/issues/560#issuecomment-798407467)).

**Parameters**:
- {object} - channel configuration object (see below for object keys/values)
- {function} success - callback function which will be call on successful channel creation
Expand Down

0 comments on commit 4a5194b

Please sign in to comment.