语言

Menu
Sites
Language
notification_insert doesn't work in native C GLES app?

Whenever I try to show a dialog via "notification_insert" nothing happens.

Are there requirments for this?  Was looking at docs: https://wiki.tizen.org/wiki/UI_Notifications

响应

4 回复
Andrew Witte

Never mind needed a privliage: https://www.tizen.org/fr/privilege?langredirect=1

Jeongsu Kim

what does notification_insert return? check the return value first.

Jean Yang

It seems some of the APIs mentioned on tizen wiki page has been deprecated.  We cannot find notification_insert() at all in the Tizen Notification API document.

It is recommend you go through following page to implement your notification.

https://developer.tizen.org/development/tutorials/native-application/application-framework/notification-0

pius lee

notification_insert() is internal API, 

https://review.tizen.org/git/?p=apps/home/notification.git;a=blob;f=include/notification.h;h=97627e087d3354cd047dfa47ed1088f4f0087d02;hb=refs/heads/tizen_2.3#l1035

You can see @internal top of notification_insert function doxygen comment.

I recommend to use notification_post() instead of notification_insert().

If you must need private id from notification_insert, you could replace that to "tag", use notification_set_tag and notification_get_tag.