@@ -220,6 +220,8 @@ notification = Notification(
220220 title = " Download.." ,
221221 style = " progress"
222222)
223+ # send notification
224+ notification.send()
223225
224226# Update progress
225227notification.updateProgressBar(30 , " 30% d ownloaded" )
@@ -228,21 +230,6 @@ notification.updateProgressBar(30, "30% downloaded")
228230notification.removeProgressBar(" Download Complete" )
229231```
230232
231- ### Channel Management
232-
233- Notifications are organized into channels. You can customize the channel name and ID:
234-
235- - Custom Channel Name's Gives User ability to turn on/off specific
236-
237- ``` python
238- notification = Notification(
239- title = " Download finished" ,
240- message = " How to Catch a Fish.mp4" ,
241- channel_name = " Download Notifications" , # Will create User-visible name "Download Notifications"
242- channel_id = " downloads_notifications" # Optional: specify custom channel ID
243- )
244- ```
245-
246233### Changing Style When Already Sent
247234
248235``` python
@@ -261,6 +248,21 @@ notification.addNotificationStyle(NotificationStyles.LARGE_ICON,already_sent=Tru
261248
262249```
263250
251+ ### Channel Management
252+
253+ Notifications are organized into channels. You can customize the channel name and ID:
254+
255+ - Custom Channel Name's Gives User ability to turn on/off specific
256+
257+ ``` python
258+ notification = Notification(
259+ title = " Download finished" ,
260+ message = " How to Catch a Fish.mp4" ,
261+ channel_name = " Download Notifications" , # Will create User-visible name "Download Notifications"
262+ channel_id = " downloads_notifications" # Optional: specify custom channel ID
263+ )
264+ ```
265+
264266** Sample Image:**
265267![ channels img sample] ( https://raw.githubusercontent.com/Fector101/android_notify/main/docs/imgs/channel_name.jpg )
266268
0 commit comments