Notification window in android becomes all black and unable to see any notification details - android-notifications

The issue which I am facing is that the notifications are shown on notification bar but when I expand the bar, not able to see the notification details (blank black window is shown).
And if I click on the blank notification window the control goes to the activity for which notification was there.
Can anybody please tell me why is this happening?

Related

com.squirrel.WhatsApp.WhatsApp Notification

little problem
When I get a message from whatsapp
it says com.squirrel.WhatsApp.WhatsApp at the top.
How do you get that off. Notification

Count of unread messages as a badge on the app icon not working

I've implemented push notification via App Center Push for my xamarin.forms project. On my android 9 device "Honor P 10 lite" the counter for the unread messages is not visible any more.
I know that with android 9 so called "notification dots" (little circle on the app icon,to inform the user that there are new messages) were introduced.
If this is enabled (via Settings -> Notifications -> App Icon Badges -> Badge Display Mode : New Notifications) the dots is visible when new messages arrived. And by long press on the app icon I can see the notification and also the correct notification count is shown on the right.
If i switch to "Badge display mode: "Unread messages" and afterwards send a push notification to my app, the badge counter doesn't get visible (altough the notification is appearing on the screen)
I've tried to set the badge count in code (notificationChannel.SetNumer()); and also tried to set the target android version to the highest API level.
Expected result: Show a badge with the correct number of unread messages on the app icon.
Actual result: No badge is shown when new push notifications were send to the device.
Do you also face this problem or do you have any idea how to fix this?
Thanks in advance!

Adding custom buttons to send message notification using Microsoft Band SDK

I have been playing with the Microsoft Band SDK and I have figured out that it is possible to create custom tile layouts and buttons along with event click receivers like ACTION_TILE_OPENED, ACTION_TILE_BUTTON_PRESSED, and ACTION_TILE_CLOSED.
However, is it possible to add custom buttons when doing send message notifications? Such that when a message is receive, the user can swipe left and see additional action buttons he/she can tap, and also tie this button to a click handler method? I have been trying to figure this out all day, but no success.
Example:
When a text (SMS) message is receive in the band, you can swipe left to see two buttons: "Dismiss" and "Reply". I was wondering if it is possible to also create this type of notification with buttons.
No, currently there are no means to customize notifications (messages or dialogs) sent to the Band.

Launch watchkit app from long custom notification content area

I'm trying to implement a feature such that users can click on the notification content area (not app icon nor action buttons) to bring the main watchkit app open. The current official way to launch the main watchkit app is to tap the app icon or action buttons in a notification scene. But I feel like the app icon is actually quite small (and hard) to tap and sometimes users are not even aware of this feature.
What I'm trying to do now is to put my notification content into a table row in the notification controller and make this row clickable. This will give user a pretty big area to tap with. Then in the click event handler I'm trying to open the main watchkit app. But I haven't figure out a way to do that (none of the general navigation methods such as presentControllerWithName works from notification controller).
Any suggestions?

MS Windows- Main window no response when show menu on a tray notify icon(use a hidden window to process message)

I implemented an class, this class will show an tray icon. to handle the message from the icon, I have to create a hidden window.
Eevery thing works fine, except if You click outside of the icon, icon will not disappear. I have fixed this by adding code below:
SetForegroundWindow(message-only-hiden-window) // added
TrackPopupMenu()
RESOLUTION:To correct the first behavior, you need to make the current window the foreground window before calling TrackPopupMenu or TrackPopupMenuEx.
Now I get the expect result: the menu can disappear if you click outside of the tray icon.
The problem is now, after the call of SetForegroundWindow(message-only-hiden-window) the main app window will no responding(cannot resize move) I can see the main window actually get those messages in spy++.
Keep this the mind if no call on SetForegroundWindow(message-only-hiden-window). Fine. Except the menu will not disappear.
Anyone has experience on similar situation?
How do you implement an tray icon which has no foreground window at all?
Any kind of help will be appreciated. If you wanna the source code I can email you.
resolved. I have forgot return DefWindowProc in the message only window. tricky

Resources