2

I am working on an Android TV app, where in which I have a use-case to trigger some views once you get a push notification. Before starting on it I would like to know if Android TV supports push notification as it does in phones and tablets?

I don't want to display the notification to the user, I would be considering it as a silent one and I would like to parse the payload contents and display a new view on the TV once a notification arrives. Will the normal notification handling used for phones/ tablets work here?

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
anoop4real
  • 7,598
  • 4
  • 53
  • 56

1 Answers1

5

Yes, Android TV supports FCM. Libraries and implementation are the same.

However, it does not work the same as for phones as tablets, since the TV does not have a system bar. On the cases where the system will automatically display the notification on the system bar, it does nothing.

In your particular case, it will work fine, since you want to always get the FCM message and then process it on the background.

shalafi
  • 3,926
  • 2
  • 23
  • 27
  • Thanks for the info. My intention is to get the payload data and do some operations, no need to display. One more question do we need to get user permission? – anoop4real Mar 06 '18 at 09:37
  • it works exactly as standard FCM, same permissions. I don't recall get user being needed. – shalafi Mar 06 '18 at 09:54
  • I tried with Android TV emulator and it works I was able to receive pushes from FCM, accepting the answer. – anoop4real Mar 07 '18 at 10:43
  • I want to receive a payload while app in background and show some custom view as an overlay on top of other apps too. How can i do this? Please help – Arundas K V Apr 15 '20 at 07:12