You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 4, 2020. It is now read-only.
description:'This is my very first notification channel',
207
208
importance:3,
208
209
vibration:true
209
210
}
210
211
);
211
212
```
212
213
213
-
The above will create a channel for your app. You'll need to provide the `id`, `description` and `importance` properties.
214
+
The above will create a channel for your app. You'll need to provide the `id`, `name` and `importance` properties, `description` is optional. The importance property goes from 1 = Lowest, 2 = Low, 3 = Normal, 4 = High and 5 = Highest.
214
215
215
216
A default channel with the id "PushPluginChannel" is created automatically. To make changes to the default channel's settings, create a channel with the id "PushPluginChannel" before calling the PushNotification.init function.
216
217
@@ -219,7 +220,8 @@ A default channel with the id "PushPluginChannel" is created automatically. To m
|`id`|`String`| The id of the channel. Must be unique per package. The value may be truncated if it is too long. |
222
-
|`description`|`String`| The user visible name of the channel. The recommended maximum length is 40 characters; the value may be truncated if it is too long. |
223
+
|`name`|`String`| The user visible name of the channel. The recommended maximum length is 40 characters; the value may be truncated if it is too long. |
224
+
|`description`|`String`| The user visible description of the channel. The recommended maximum length is 300 characters; the value may be truncated if it is too long. |
223
225
|`importance`|`Int`| The importance of the channel. This controls how interruptive notifications posted to this channel are. The importance property goes from 1 = Lowest, 2 = Low, 3 = Normal, 4 = High and 5 = Highest. |
224
226
|`sound`|`String`| The name of the sound file to be played upon receipt of the notification in this channel. Cannot be changed after channel is created. |
225
227
|`vibration`|`Boolean` or `Array`| Boolean sets whether notification posted to this channel should vibrate. Array sets custom vibration pattern. Example - vibration: `[2000, 1000, 500, 500]`. Cannot be changed after channel is created. |
0 commit comments