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 Jan 14, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: example/NotifService.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ export default class NotifService {
31
31
channelDescription: "A default channel",// (optional) default: undefined.
32
32
soundName: "default",// (optional) See `soundName` parameter of `localNotification` function
33
33
importance: Importance.HIGH,// (optional) default: Importance.HIGH. Int value of the Android notification importance
34
-
vibrate: true,// (optional) default: true. Creates the default vibration patten if true.
34
+
vibrate: true,// (optional) default: true. Creates the default vibration pattern if true.
35
35
},
36
36
(created)=>console.log(`createChannel 'default-channel-id' returned '${created}'`)// (optional) callback returns whether the channel was created, false means it already existed.
37
37
);
@@ -42,7 +42,7 @@ export default class NotifService {
42
42
channelDescription: "A sound channel",// (optional) default: undefined.
43
43
soundName: "sample.mp3",// (optional) See `soundName` parameter of `localNotification` function
44
44
importance: Importance.HIGH,// (optional) default: Importance.HIGH. Int value of the Android notification importance
45
-
vibrate: true,// (optional) default: true. Creates the default vibration patten if true.
45
+
vibrate: true,// (optional) default: true. Creates the default vibration pattern if true.
46
46
},
47
47
(created)=>console.log(`createChannel 'sound-channel-id' returned '${created}'`)// (optional) callback returns whether the channel was created, false means it already existed.
48
48
);
@@ -57,7 +57,7 @@ export default class NotifService {
57
57
channelDescription: `A custom channel to categorise your custom notifications. Updated at: ${Date.now()}`,// (optional) default: undefined.
58
58
soundName: "default",// (optional) See `soundName` parameter of `localNotification` function
59
59
importance: Importance.HIGH,// (optional) default: Importance.HIGH. Int value of the Android notification importance
60
-
vibrate: true,// (optional) default: true. Creates the default vibration patten if true.
60
+
vibrate: true,// (optional) default: true. Creates the default vibration pattern if true.
61
61
},
62
62
(created)=>console.log(`createChannel returned '${created}'`)// (optional) callback returns whether the channel was created, false means it already existed.
0 commit comments