Is ti possible too embedded video into android rich notification as it possible in iOS? I know that the android officially still do not support that, but it may be some tricky way to improvise that? :)
Thanks in advance.
GIFs are not supported by Android and are rendered as static images in a Push Notification.
Large Images for Mobile Push Notifications can be added on iOS and Android.
To add an image in your notification, pass an instance of NotificationCompat. BigPictureStyle to setStyle() .
There is no way to show video on RemoteViews. You can use only widgets that are described in the official documentation
As you show in comments as example, it's not a video in the notification, it's a simple image (but as I assume, when you click on it, some apps, that can show video by URL (or something like that), will be started and showing you content, that's all)
You have to implement FCM Messages 'Data message'. This will allow you to send custom json data. More info here: FCM documentation. Such message will not be shown automatically - after receiving you need to build your custom notification layout. More info here: Android dev documentation It's not possible to show video directly on notification panel. Checkout how youtube does it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With