nb6

  1. Alain75

    Android Question How to start another activity when Replacing Notification by NB6

    I used the simple notification builder and passed an intent in the setinfo2 activity parameter in order to start another application when clicking the notification. dim notif as Notification, pm as PackageManager ... notif.SetInfo2("Title","Text","",pm.GetApplicationIntent(xxx)) I want to...
  2. M

    Android Question Clicking on the notification and running the service

    Hi How can I create a notification with a big image using a library: https://www.b4x.com/android/forum/threads/nb6-notifications-builder.91819/#content which when clicked run a service without bringing up any activity?
  3. R

    Android Question NB6 Custom sound and HIHT priority

    Hi, I have a problem with the NB6 notification library. I'd like to make a notification with high priority and a custom sound, goes I see it can't be done. The setCustom function doesn't set the custom sound to false if we are in isChannel = true mode, how can I do to disable the defautl sound...
  4. Rasoull

    Android Question Notification with custom style

    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",""...
  5. D

    Android Question Gray icon in Notifications

    Hello everyone! I faced such a problem: on some devices and the emulator the notification icon is gray, while on my phone (HONOR 9X) the icon is colored and everything is fine. I also used the class Notification, and now I use NB6. Nothing has changed, can anyone have encountered such a problem...
  6. A

    Android Question EditText and NB6

    I recently saw that whatsapp allows you to reply to messages in the notification bar. Is it possible to insert an EditText with NB6, to receive texts? If not possible with NB6, is there an alternative? I looked here on the Forum and I didn't find it.
  7. A

    Android Question Detecting when a notification NB6 is dismissed by the user?

    I need to handle the event when the user swipes the NB6 notification. I can't figure out how to do this? Very much appreciated in advance.
  8. D

    Android Question start service when notification clicked

    Hi i use nb6 for show notification for sample i use this code: Dim n As NB6 n.Initialize("default3", "Class", "HIGH").AutoCancel(True).OnGoing(False).SmallIcon(Application.Icon) n.SetDefaults(True, True, True) n.Build("Error", "Helllllo", "status", test) when i click on notification, activity...
  9. Mrphone

    Android Code Snippet Change notification background color

    Hi How Can I Change Notification Background Color? :) Like the picture below ? Thanks in advance for your help ;)
  10. P

    Android Question NB6 Firebase Messaging

    I am creating notifications using FirebaseMessaging. I have used some of the functions mentioned here. Scenario : Send two or more notifications to the android app. When the target is set to a service name in nb6.build(...), the corresponding "service_start" is executed only when the first...
  11. W

    Android Question [Solved] NB6 icon not showing on lock screen (only the white circle)

    I'm puzzled - not for the first time, certainly not for the last. My device is a Moto X Style running Android 7.0 and the app is compiled with B4A 9.50. When I use B4A Bridge, the notification icon shows properly on the lock screen; B4A Bridge doesn't use NB6 (NotificationBuilder) for...
  12. janderkan

    Android Question NB6 and lock screen

    Using the demo from here i have changed this sub to have Visibility("PUBLIC") Sub Notification_WithActions Dim n As NB6 n.Initialize("default", Application.LabelName, "HIGH").Visibility("PUBLIC").SmallIcon(smiley).AutoCancel(True) n.AddButtonAction(smiley, "Action 1", MyService...
  13. M

    Android Question NB6 Notifications Builder class (2018)

    I installed the NB6.zip and ran it unchanged on my Nokia 6 with Android 9 and it worked for most examples for the first time. But not for "animated", "with progress" and "with actions" - even on first start. On second and following start, only "High priority", "Low priority" and "custom sound"...
  14. Azam Memon

    Android Question granturipermission error on internal storage in NB6 customSound

    I have obtained URI of a sound using RingTone Manager for NB6 custom sound, the URI of sound is: content://media/internal/audio/media/30 When I try n.CustomSound("content://media/internal/audio/media/30") I get the following exception. (RuntimeException) java.lang.RuntimeException...
  15. Abdou1283

    Android Question Custom notifications with nb6

    HI all, can i do a custom notifications like this one with NB6 class
  16. Sandman

    Android Question Are you using NB6? Are you seeing "System UI has stopped"?

    There's a thread going on regarding this topic, right here. Erel has requested information about what phone models that are affected. If you are using NB6 and you have some users (or even yourself) that get the "System UI has stopped", please take a minute to answer Erels question right here...
  17. Sandman

    Bug? NB6 crashes Sony Xperia M5 hard, forcing phone reboot

    For some reason NB6 crashes Sony Xperia M5 (and perhaps more phones) when using NB6. To reproduce: - Download the official NB6 (including the updated NB6.bas) and install - Try the first notification - Message on screen: "Unfortunately, System UI has stopped" Result in pic below. After...
  18. Sandman

    Android Question [SOLVED] NB6: Demo project doesn't play custom sound - should it?

    I've been working to get my app to use NB6, and have found something that surprise me. I can't really tell if this is meant to work or not, there are so many different ways of handling notifications now for Android. I just have to ask the forum for input on this one... I'm running Erels demo...
  19. Sandman

    Bug? Two text typos in NB6

    I think I've found two typos in the NB6 class. It not in the code, just the docs. Still, it might cause confusion (it did for me), so I thought I'd report them: 'Shows a progress bar. Cannot be used with SubText. 'Value - Current value. 'MaxValue - Maximum value. 'Indeterminate - Set to true...
  20. iz0ndg

    Android Question RingtoneManager & NB6

    Hi all, I have some code to select a ringtone and then use it in a notification using NB6 Sub btnoti_Click RM.ShowRingtonePicker("RM",RM.TYPE_ALARM,False,btnoti.Tag) End Sub Sub RM_PickerResult (Success As Boolean, Uri As String) Log("success..." & Success) Log("Uri : " & Uri) If...
Top