Douglas Farias Expert Licensed User Longtime User Sep 13, 2018 #1 Hi All. i m using this example of @Erel to show notifications on my apps. https://www.b4x.com/android/forum/threads/nb6-notifications-builder-class-2018.91819/ i have a simples questions, i m using BigPictureStyle to show a image on the notification, but the user dont know when the notification have image or not, its possible show the notification opned (expanded)? already showing the image, and not require the user interactions? what is the best way to alert the user that this is an image notification? many users will not know that it is a notification that they can expand to see the image. it possible expand this via code? or already notify this opned? thx
Hi All. i m using this example of @Erel to show notifications on my apps. https://www.b4x.com/android/forum/threads/nb6-notifications-builder-class-2018.91819/ i have a simples questions, i m using BigPictureStyle to show a image on the notification, but the user dont know when the notification have image or not, its possible show the notification opned (expanded)? already showing the image, and not require the user interactions? what is the best way to alert the user that this is an image notification? many users will not know that it is a notification that they can expand to see the image. it possible expand this via code? or already notify this opned? thx
Erel B4X founder Staff member Licensed User Longtime User Sep 14, 2018 #2 Check this answer: https://stackoverflow.com/a/23331716/971547 Upvote 0
S Seung Lee New Member Licensed User Sep 19, 2018 #3 I understand the webpage " https://stackoverflow.com/a/23331716/971547" but when i use nb6 Library, I can't set the value of Notification.PRIORITY_MAX How can i set the Priority as Notification.PRIORITY_MAX when i use nb6 library .. ? Upvote 0
I understand the webpage " https://stackoverflow.com/a/23331716/971547" but when i use nb6 Library, I can't set the value of Notification.PRIORITY_MAX How can i set the Priority as Notification.PRIORITY_MAX when i use nb6 library .. ?
Erel B4X founder Staff member Licensed User Longtime User Sep 20, 2018 #4 Good question. The MAX priority doesn't exist in Android 8+. You should pass "HIGH" to the initialize method. If you want to use MAX priority on Android 6-7 then change line 52 of NB6 to: Code: Dim pm As Map = CreateMap("MIN": -2, "LOW": -1, "DEFAULT": 0, "HIGH": 2) '2 instead of 1 for HIGH Upvote 0
Good question. The MAX priority doesn't exist in Android 8+. You should pass "HIGH" to the initialize method. If you want to use MAX priority on Android 6-7 then change line 52 of NB6 to: Code: Dim pm As Map = CreateMap("MIN": -2, "LOW": -1, "DEFAULT": 0, "HIGH": 2) '2 instead of 1 for HIGH
S Seung Lee New Member Licensed User Sep 25, 2018 #5 When I set the Priority with HIGH , it's is not expanded the notification(Only Popup at top of the display..) In According to "https://stackoverflow.com/a/23331716/971547", If I set the Priority with Notification.PRIORITY_MAX Notification will be expanded. hmm .. How I can expand the Noitification ? Upvote 0
When I set the Priority with HIGH , it's is not expanded the notification(Only Popup at top of the display..) In According to "https://stackoverflow.com/a/23331716/971547", If I set the Priority with Notification.PRIORITY_MAX Notification will be expanded. hmm .. How I can expand the Noitification ?