简体   繁体   中英

Push notification on Android TV

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM