×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Jul 2013
    Posts
    1

    Question Ovi Notification icon problem!!!!

    Hi,

    i am creating my QML project with Ovi notifications API (from QML). but i am facing a little problem concerning the notification icon.
    When i receive a push notification i mark it as consumed with the following code
    Code:
       var messagelist = aNotification.id
        notifications.markConsumed = messagelist;
    but sometimes for some reasons that i still cant figure it out, the icon doesn't disappear from the UI and still stuck in the interface!!
    so when a new notification is received and execute the latter code, it remove only the new notification and the previous one is still shown.
    So how can i remove all notifications from the interface and not only the received one? is there any way to do it??? any code to delete all the pending notifications from the interface?


    Thank you for any help.
    Regards,

  2. #2
    Registered User
    Join Date
    Jul 2013
    Posts
    4

    Re: Ovi Notification icon problem!!!!

    Any update concerning this post?? any champion here?

  3. #3
    Regular Contributor
    Join Date
    Apr 2012
    Location
    malaysia
    Posts
    262

    Re: Ovi Notification icon problem!!!!

    Did you also use javascript ?.Maybe you could use the project example and learn from it.I guess not many people use the notification service,that is why there is no response for your question.

  4. #4
    Registered User
    Join Date
    Jul 2013
    Posts
    4

    Re: Ovi Notification icon problem!!!!

    Quote Originally Posted by babylongreece View Post
    Did you also use javascript ?.Maybe you could use the project example and learn from it.I guess not many people use the notification service,that is why there is no response for your question.
    Hi, Thanks for your reply,
    I am only using the QML example for the Notification API..this is the link:
    https://projects.developer.nokia.com...dNotifications

    But this is not deleting the notification icon from the screen and it is driving me crazy.
    I need to delete these icons from the screen and it is a must to use the notifications API in my project.
    The pending icons are only deleted when i restart the device!!

    please somebody help me

    thank you

  5. #5
    Regular Contributor
    Join Date
    Apr 2012
    Location
    malaysia
    Posts
    262

    Re: Ovi Notification icon problem!!!!

    Actually I confuse.Which icon are you referring to ?.Is it the icon in the drop down menu or anywhere else ?.Now I am looking at a link you post.

  6. #6
    Regular Contributor
    Join Date
    Apr 2012
    Location
    malaysia
    Posts
    262

    Re: Ovi Notification icon problem!!!!

    Did you enable the setting ?.There is description say "By default,the setting is off".If yes,all i could see is it could be cause by the notification ID since it is require to identify that the message is read.It's quite to know how the code behave without opening it myself

  7. #7
    Registered User
    Join Date
    Jul 2013
    Posts
    4

    Re: Ovi Notification icon problem!!!!

    Quote Originally Posted by babylongreece View Post
    Actually I confuse.Which icon are you referring to ?.Is it the icon in the drop down menu or anywhere else ?.Now I am looking at a link you post.
    hi, yes i am talking about the icon that appears in the drop down menu (next to the signal, battery icon and the clock)..sometimes the icons remains there and never marked as read untill i restart the device..this is very annoying.

    Quote Originally Posted by babylongreece View Post
    Did you enable the setting ?.There is description say "By default,the setting is off".If yes,all i could see is it could be cause by the notification ID since it is require to identify that the message is read.It's quite to know how the code behave without opening it myself
    what i am doing when the status of the Notification API is set to EStateOnline is the following:
    notifications.getNotificationInformation();
    notifications.setWakeUp(true);
    notifications.setNotificationUi(true);
    notifications.setNotificationUiUpdate(true);
    and when i receive the notification:
    var messagelist = aNotification.id
    console.debug("the message id"+messagelist)
    notifications.markConsumed = messagelist;
    So i am getting the NID by(notifications.getNotificationInformation() , so why still some notification still stuck and never deleted (notice that the message id is printed successfully in my console before markConsumed function)


    you can find the qml notification example here: https://projects.developer.nokia.com...qmlexample.zip


    Thank you for trying to help me

  8. #8
    Regular Contributor
    Join Date
    Apr 2012
    Location
    malaysia
    Posts
    262

    Re: Ovi Notification icon problem!!!!

    I have a few suggestion for you

    -Take a look at a working example

    -Maybe you could use the notification ID directly instead of going through as "messagelist".
    Example " notifications.markConsumed = aNotification.id "

Similar Threads

  1. Custom notification icon
    By adhossain in forum Symbian
    Replies: 1
    Last Post: 2010-07-18, 03:37
  2. voicemail notification icon
    By suncc in forum General Messaging
    Replies: 3
    Last Post: 2006-04-18, 10:22
  3. Background of notification icon
    By white_dragon in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2005-04-28, 14:52
  4. notification icon
    By vodkaloon in forum Symbian
    Replies: 2
    Last Post: 2004-11-17, 13:17

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×