Languages

Menu
Sites
Language
Base push notification example

Hi All,

Could someone please post a basic example of the html and javascript needed to register for push notifications?  I am trying to follow the documentation but clearly I am missing a step because even the following throws an error about tizen not being defined:

var service = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/push_test");

Thanks!

Responses

2 Replies
Raghu Kona

Hi Matt Alonso,

Please refer the article posted the tizen.org.

https://developer.tizen.org/documentation/articles/push-api

Regards,

Raghu Kona

Matt Alonso

Hi Raghu,

Thank you very much for your response.  Turns out that the problem was because I failed to realize that changes made to config.xml - unlike those made to html/js/css - required the simulator itself to be restarted and were unaffected by a simple page refresh.  I must have started the simulator before adding the tizen:privilege line, because as soon as I restarted it, the code worked.  Thanks again!

Cheers