Hello,
I'm developing a TV Web application and I'm in a desperate need of implementing push notifications. Currently I can properly register to the Push Service I'm getting the regID. It starts with "05" so I have to post to Korean API (no idea why since I'm in Europe and I mentioned it in the API key request). Then I use Postman to send a notification to my app. Here is a screenshot of a sample request I tested.
In hearders I include the appID (from config.xml), appSecret (the code I got as a response to Push Service request email) and Content-Type: application/json.
The problem is that when I send a notification nothing is recieved in the app. This is the code that is responsible for handling the upcoming notification:
I've also tried making the notificationCallback function to take one parameter (like notificationCallback (response) {...} ) but to no avail. The console.log is not executing. What am I doing wrong?
I would also like to know if it's possible to use Firebase Cloud Messaging in Tizen TV Web app as an alternative. I've tried to connect it to my app, but didn't succeed since I wasn't able to make the ServiceWorker work ( ;) ).
Also - if either Tizen Push Notifications or Firebase Cloud Messaging somehow start working in my app - is there a way to display them even if the app is in background? For example then somebody is watching TV and they get a notification telling that the app requires their attention.
These are the 3 questions I need to know the answers to. Please help :)
All the best,
Marcin