i am sending a notification from my server using FCM to my users that contain both a data and notification type payload.
based on the docs:
Messages with both notification and data payload, both background and foreground. In this case, the notification is delivered to the device’s system tray, and the data payload is delivered in the extras of the intent of your launcher Activity.
everything works fine, the notification shows up on the system tray now i would like to show that notification for about 20 seconds and then let it disappear from tray if the user did not click or do anything. (so methods with a handler wont work since the user is not clicking)
Am really not sure how to go about this, can someone please help!