7

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.

Dragisa Dragisic
  • 731
  • 2
  • 9
  • 19

2 Answers2

2

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)

rahulrvp
  • 2,006
  • 1
  • 19
  • 26
HeyAlex
  • 1,666
  • 1
  • 13
  • 31
  • 1
    Not sure but it may be possible. I am [searching further about it.](https://stackoverflow.com/q/65773220/2289835) – Rumit Patel Jan 18 '21 at 11:05
1

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.

3mpty
  • 1,354
  • 8
  • 16
  • Not sure but it may be possible. I am [searching further about it.](https://stackoverflow.com/q/65773220/2289835) – Rumit Patel Jan 18 '21 at 11:05