OneSignal-Android-SDK icon indicating copy to clipboard operation
OneSignal-Android-SDK copied to clipboard

[question]: I'm using one signal android SDK for my android TV app. I'm not able to receive One Signal notification when my app is in background. I only want to get payload, no need to show notification UI.

Open WahajMubeen341 opened this issue 2 years ago • 3 comments

How can we help?

I understand that there is no notification tray in android TVs which does not affect my use case. I only want to receive a payload via notification within my app even when my app is in the background. Just like in mobile, where even an app in the background still receives notification and displays payload in it's notification tray.

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

WahajMubeen341 avatar Aug 25 '22 05:08 WahajMubeen341

We do not test our SDK against Android TVs, so I cannot say with confidence what the issue is here. Our documentation for background and data notifications is here, just in case some of those steps have not been completed. Have you already implemented the Android Notification Service Extension?

emawby avatar Aug 25 '22 17:08 emawby

Hi @emawby ! YES i already tried Notification Service Extension from the same documentation. I've been using firebase and onesignal in TV apps for remote notifications but they work while the application is in the foreground. As there is no notification tray for android TV apps, we don't even receive the payload if the app is in the background. Looking forward to this regard. Thanks

WahajMubeen341 avatar Aug 26 '22 04:08 WahajMubeen341

HI @emawby ! Requestting update on my issue please! Thanks

WahajMubeen341 avatar Aug 31 '22 05:08 WahajMubeen341