AHilberink Well-Known Member Licensed User Longtime User Mar 18, 2021 #1 Hi, Using Notifications (NB6) and set IMPORTANCE_HIGH the notification pops up and disappears automatically after some ms. My code: B4X: nb.Initialize("chauffeur", Application.LabelName, "HIGH").AutoCancel(True).SmallIcon(Icon) Is there a way to set the time of this popup to extend the time before disappear? I am not refering to the timeout for canceling the notification, just the time of the popup. Kind regards, André
Hi, Using Notifications (NB6) and set IMPORTANCE_HIGH the notification pops up and disappears automatically after some ms. My code: B4X: nb.Initialize("chauffeur", Application.LabelName, "HIGH").AutoCancel(True).SmallIcon(Icon) Is there a way to set the time of this popup to extend the time before disappear? I am not refering to the timeout for canceling the notification, just the time of the popup. Kind regards, André
Erel B4X founder Staff member Licensed User Longtime User Mar 18, 2021 #2 Not sure that I understand. Do you want to change the duration between the popup shows and until it disappears automatically? Upvote 0
Not sure that I understand. Do you want to change the duration between the popup shows and until it disappears automatically?
AHilberink Well-Known Member Licensed User Longtime User Mar 18, 2021 #3 Erel said: Not sure that I understand. Do you want to change the duration between the popup shows and until it disappears automatically? Click to expand... Yes, this is what I am looking for. Upvote 0
Erel said: Not sure that I understand. Do you want to change the duration between the popup shows and until it disappears automatically? Click to expand... Yes, this is what I am looking for.
Erel B4X founder Staff member Licensed User Longtime User Mar 21, 2021 #4 It is not configurable. Based on this answer: https://stackoverflow.com/a/48862351/971547 setting the notification category to "call" and making it an ongoing notification will cause it to stay visible. You can set the category with: Code: NotificationBuilder.RunMethod("setCategory", Array("call")) 'in NB6 class Upvote 0
It is not configurable. Based on this answer: https://stackoverflow.com/a/48862351/971547 setting the notification category to "call" and making it an ongoing notification will cause it to stay visible. You can set the category with: Code: NotificationBuilder.RunMethod("setCategory", Array("call")) 'in NB6 class