Languages

Menu
Sites
Language
The image of status notification not shown

My app needs to show status notification with image, music, and vibration.

In the emulator, the result is as below

The music is not playing, I get it, maybe the emulator does not support MP3 playing just yet

No vibration, fine. 

But the image is all black which is weird as my image is just plain vanilla 24x24 JPEG file with green background and black icon. How so?

Responses

7 Replies
talari praveen kumar
Imgen Tata

Thanks for the intensive article link. One thing I want to ask about the source code is how does it allow user to click a notification then show a notification screen? I see there is a AppControl object

 

var appControl = new tizen.ApplicationControl(
				"http://tizen.org/appcontrol/operation/notification",
				null,
				null,
				null);

But I couldn't figure out how does it allow a click to open the notification screen in the app. Could you or someone shed some light on me? I downloaded the source code of this article, still unable to figure out.

 

Imgen Tata

BTW, even with the article's source code the icon is still not shown with the simple notification, what's wrong?

Alexander AVSukhov

Hello,

please check that the iconPath, soundPath files exist

it must be in the /opt/usr/media/

 

Imgen Tata

Oh, really, how can I get those paths? How do I know that the files even exist on user's file system? Is there no way to use cusotm sound file and custom icon?

Alexander AVSukhov

Hello,

You may use following directory /opt/apps/{appId}/shared folder, so just use that folder as the path. Hope this info helps. 

konduri sai swathi

Hi,

Yes, you can use custom icon and sound for your notification. You can save the icon image and sound file in your project folder and give it's path while creating the notification object. You can see the see the notification screen by dragging down the notification bar above header of the application.