语言

Menu
Sites
Language
Notifications API should be hanged, no kidding, :)

I'm so frustrated with the icon issue with the SIMPLE NOTIFICATION - turns out it's not  simple at all. Specifically I have two issues with it

#1, The icon will not show up except if I use this path

       /opt/apps/9kAyFAxrfU.backup/icons/9kAyFAxrfU.Notifications.png

      Don't know what is so special about this path. I tried to substitute the app id with my own like below

      /opt/apps/bx2nReIOKH.backup/icons/bx2nReIOKH.Destiny.png

      I tried to use my own app icon - icon.png, won't work. Then I tried to use a custom 24x24 icon destiny.png, still no luck. 

 

#2, How do I open my app after user click my application? I mean, not relaunching, but switch to my app instead. If I pass my app's app id, then it will relaunch which is not desired.

Thanks for the great answer in advance. 

编辑者为: Imgen Tata 10 11月, 2013

响应

2 回复
konduri sai swathi

Hi,

I have raised a bug in JIRA for the notification icon issue : https://bugs.tizen.org/jira/browse/PTAPI-14

Follow the link for more updates on this issue. This "/opt/apps/9kAyFAxrfU.backup/icons/9kAyFAxrfU.Notifications.png"  path you can find in the connection explorer -> emulator. Actually this folder is created only when any changes are done to the config.xml file. So you can get the notification image after this folder is created.  You can give "iconPath" like "images/image5.jpg" (takes image5 from gallery). 

And regarding your second question, It's not possible to just switch to the app, it relaunches it. Even this is a known issue.

Imgen Tata

I found a walkaround, hooray. After installation, the app is located at /opt/apps/{appId}/res/wgt folder, so just use that folder as the path then the notification icon would show up. Hope this info helps.