B4A Code Snippet NB6 class - additional functions - wes58    Dec 08, 2021   (28 reactions) Here is an example for Inbox Notification using some of other added methods:
Sub Inbox_Notification
Dim n As NB6
n.Initialize(chEmail, "Email", "HIGH").SmallIcon(smiley).AutoCancel(False) '.Ongoing(True)
n.Description("notification from Email app")
Dim largeIcon As Bitmap = LoadBitmapResize(File.Di B4A Library Custom Notification Library: Barx - barx    Apr 09, 2015   (7 reactions) Name it mylayout.xml and make it read only. Example: cn.Initialize(2) 'Initializes the notification and sets the layout to Two Text fields plus One Image IsInitialized As Boolean Notify (Id As Int) Displays the notification. Id: - The notification Id. This can be used later to update the notificati B4A Code Snippet Custom notifications channel - Erel    Jan 15, 2021   (5 reactions) Don't use this code. Use NB6 instead.
Starting from Android 8, notifications are grouped by channels. The notification behavior depends on the channel it belongs to.
With B4A v8+ notification channels are created automatically based on the importance level.
You can use the following code to manual B4A Library Notification Builder Library. - barx    Dec 12, 2017   (48 reactions) Pass a NotificationCustomLayout object.
API 11+
CustomSound As String
Sets a custom sound to be played on new notification
Example:
<code>cn.CustomSound = "file:///sdcard/notification/ringer.mp3"</code>
CustomVibrate() As Long
Sets a custom vibrate pattern for new notification
The Array of values B4A Question custom notification - Rasoull    Jun 03, 2022 Hi, how can I create a custom notification like this? I need to apply a custom font, background color and text size. B4A Question Notification with custom style - Rasoull    Apr 18, 2022 Hi,
I use the following code to create custom notifications but I can not change the font and size of the text, does anyone know what the problem is?
Thank You.
n.Initialize("default","", "LOW").AutoCancel(False).LargeIcon(icon1).SmallIcon(icon2).OnlyAlertOnce(True).Colorized(True).Color(b B4A Question [solved}Notification with custom sound. - Gavin    Oct 05, 2023 I am trying to update a five year old project to use a Notification with Custom Sound.
I down loaded the example from this forum, changed the custom sound from "Shotgun.mp3", to an mp3 of my choosing, compiled and Success.
I then copied the subs "Notification_WithCustomSound" and "CreateFileProvid B4i Question Firebase Notification - on/off custom sound - Erel (first post)    Sep 28, 2022 Subscribe to a different topic based on the sound preference.
The notification is handled by the OS which means that once the server sent the notification it cannot be modified on the client. B4A Question Custom notifications - KMatle (first post)    Oct 04, 2018   (1 reaction) See here: https://www.b4x.com/android/forum/threads/nb6-notifications-builder-class-2018.91819/ B4A Question NB6 - Notifications Builder - dibesw (first post)    Dec 18, 2023 Initialize("custom sound", Application.LabelName, "DEFAULT")
n.SmallIcon(LoadBitmapResize(File.DirAssets, "smiley.png", 32dip, 32dip, True))
'disable the default sound
n.SetDefaults(False, True, True)
'set custom sound
n.CustomSound(provider.GetFileUri(FileName))
'Dim Notific Page: 1   2   3   4   5   6   7   Powered by ColBERT |