How to send a notification to the user at a specific time

Hi all

How can I send a notification to the user? Currently I have this in my c ++ but it does not display notifications?

Any suggestions are welcome.

Thanks in advance.

#include 
#include 
#include 
#include 

using namespace bb::platform;   

void sendNotification::onNotificationResponse() {
        Notification* pNotification = new Notification();
    qDebug() << "Notifying";

    pNotification->setTitle("Maintenance Reminder");
    pNotification->setBody("Maintenance will be starting in 30 minutes.");
    pNotification->setTimestamp(QDateTime::fromString("2013-11-28 18:00:00", "yyyy-MM-dd hh:mm:ss"));

    pNotification->notify();}

If your application is frozen you can of course check the time periodically nuer a QTimer, or other methods.

If your application is not running currently, there is unfortunately no nice way to do a trigger invocation time based (except for the phone to boot) does not yet exist (or at least is not readily available yet).

Thus, three methods either go in the sense of time running headless, use the calendar api or have a mechanism external push of a server.

Tags: BlackBerry Developers

Similar Questions

  • Adobe send me notification on the credit card idle that my license will expire in a few days how I can now do my credit card is active already

    Adobe send me notification on the credit card idle that my license will expire in a few days how I can now do my credit card is active already

    Please see:

    Using creative cloud | 'Renew your membership' window appears when you launch a creative cloud application

    Re: The 10 Questions on the creation of clouds

    Re: "renew your membership".

    Hope this bhelps.

    Concerning

    Megha Rawat

  • How can I force a send this page if the user presses a tab?

    This may be obvious buy I start everything just with the APEX then maybe someone can tell me...
    How can I force a send this page if the user presses a tab and they go to another page before I run the backup of page variables?
    Thank you!!!
    C

    Hello

    If you use version 4.x Apex while you can create a dynamic action for this.

    * If this answer is useful or appropriate then please mark and award points.

  • How to send a file to the cloud?

    (1) how to send a file to the cloud?

    (2) at - it a difficulty to find and recover a file that has been sent to the cloud? If the use is similar to the use of an external hard drive, I don't mind.

    The following contains information on how to activate and use iCloud drive. Note that with iCloud as it exists currently with OS X El Capitan, for any file stored in iCloud drive a local copy is also stored on your Mac.

    iCloud Drive FAQ - Apple Support

  • I bought my computer from someone else. Change user accounts did not name of each file in the computer. How can I change or remove the user/name (my name) /document? __

    I bought my computer from someone else. Change user accounts did not take their name off of each (or more) file in the computer. How can I change or remove the user/name/document
    I have looked everywhere and changed user information and the name of the administrator. What can I do else?

    Hello flashgordonjxn,

    Who has ever done the installation of Windows, the installation program asks you to enter your name and optionally, the name of the organization. These registration information appears under recommended for in the general tab of the System when you click Start, click Control Panel, click performance and Maintenanceand then click System.

    To change see instructions below:

    1. Click Startand then click run.
    2. In the Open box, type regedit, and then click OK.
    3. Look for the following registry key:
      HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
    4. To change the name of the company, follow these steps:

      In the right pane, double-click RegisteredOrganization. Under value data, type the name that you want, and then click OK.

    5. To change the name of the registered owner, follow these steps:

      In the right pane, double-click RegisteredOwner. Under value data, type the name that you want, and then click OK.

    6. Click Exit on the file menu to exit the registry editor.

    Hope this helps you. Let us know anyway. Make it a great day!

    "And in the end the love you take, is equal to The Love You Make" (The Beatles last song from their latest album, Abbey Road.)

  • How to download my photo as the user's windows picture, how do I add my profile in the OS as an administrator

    How to download my photo as the user's windows picture, how to add my profile in windows OS (vista, xp, win98se) as an administrator windows/PC?

    Hello

    You can choose an image that will be associated with your user account and shown on screens or menus that display your user name, such as the home screen or the start menu.

    Follow the steps in the article mentioned below:

    Windows Vista: http://windows.microsoft.com/en-US/windows-vista/Choose-a-picture-for-your-user-account-and-Start-menu

    Windows XP: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ua_picture_change_w.mspx?mfr=true

  • How to send an email to the entire group

    Original title: sending a group e-mail

    I created a group in my contacts, but don't know how to send an email to the entire group.   When I type in the name of Group 5 of the 25 show upward.   I'm doing something wrong.

    You will need to provide much more information.  For example, what email program are you using?  Is it perhaps Windows Live Mail 2012?

  • How to create a password for the user account for my child?

    How to create a password for the user account for my child?

    You can create the user with the parental control account. This will act as a protection for the child's account.

    You can take a look at the following links on setting up parental controls:

    http://Windows.Microsoft.com/en-us/Windows/set-up-family-safety#set-up-family-safety=Windows-7

    http://Windows.Microsoft.com/en-us/Windows/set-parental-controls#1TC=Windows-7

    http://www.howtogeek.com/HOWTO/10524/how-to-use-parental-controls-in-Windows-7/

  • How to get more information about the user using SecurityContext ADF?

    Hello.

    In my application I have a table use:

    CREATE TABLE ("ADM_USERS"

    ACTIVATE THE 'ID' NUMBER(*,0) NOT NULL,

    ACTIVATE THE 'U_NAME' VARCHAR2 (30 BYTE) NOT NULL,

    ACTIVATE THE "U_PASS" VARCHAR2 (255 BYTE) NOT NULL,

    VARCHAR2 (30 BYTE) "NAME."

    VARCHAR2 (30 BYTE) 'NAME')

    I configured the WebLogic environment using the the "reading- SQL only the authentication provider ' and then I configured ADF Security as ADF authentication -> Forms -authentication.

    I connect the user using the method of ""doLogin " and all that working properly. "


    public String doLogin() {}

    String _username =;

    Byte [] pw = _password.getBytes ();

    FacesContext fctx = FacesContext.getCurrentInstance ();

    HttpServletRequest request = (HttpServletRequest) () .getRequest () fctx.getExternalContext;

    try {}

    Topic topic = Authentication.login (new URLCallbackHandler (UN, pw));

    ServletAuthentication.runAs (object, request);

    String loginUrl = "/ adfAuthentication?success_url=/faces/Registry.jsf";

    HttpServletResponse response = (HttpServletResponse) fctx.getExternalContext (m:System.NET.FtpWebRequest.GetResponse ());

    sendForward (request, response, loginUrl);

    } catch (FailedLoginException fle) {}

    FacesMessage msg = new FacesMessage (FacesMessage.SEVERITY_ERROR, "Incorrect name or password","Incorrect name or password" "");

    fctx.addMessage (null, msg);

    } catch {} (the LoginException)

    reportUnexpectedLoginError ("LoginException", the);

    }

    Returns a null value.

    }

    securityContext.userName returns the value of the 'U_NAME '.

    How to make more information on the user connected such as NAME, ID, first NAME?


    And the second question:

    How to store the value of the field 'ID' in table 'ADM_USERS' in any table with the 'IDUSER' with objects of entity created in application scope?


    Concerning

    Darek


    securityContext.userName returns the value of the 'U_NAME '.
    How can I get more information about the user logged as NAME, first NAME, ID?

    You can not.

    You need to query DB.

    How to store the value of the field 'ID' in table 'ADM_USERS' in any table with the 'IDUSER' with objects of entity created in application scope?

    Record this value in UserData structure so it will be available in the model. http://andrejusb.blogspot.com/2012/05/solution-for-sharing-global-user-data.html

    Then use as default expression for your objects of entity attributes (something like: adf.userSession.userData.yourUserDataVar).

    Dario

  • CP can send a pass mark for the LMS when the user reaches a specific slide?

    I use CP 6.1 and I was wondering if there is a way I can set my parameters of reports to send a pass mark for the LMS when the user reaches a specific slide?

    Screen Shot 2014-01-13 at 3.04.07 PM.png

    I don't want to 'pass' to be determined by a Quiz. I want to be determined by slide views or the number of slides. I want a "pass mark" to pass to the LMS only when the user reaches a SPECIFIC slide. Is this possible?

    Not with the views of the slide. It would not be acceptable to have an object on this slide, the user should click on? And then require a score equal to one set to this object (button, button shape, click box or even a text entry box)?

  • How do know us that now the user using the server component

    Hi all

    Suppose a user loged in to the siebel application.and requested for an object manager/component.and as the user who got. But this particular component is active in a portion so how do we know that now the user using the component.means Server user is in what server to use this object manager component.


    Concerning
    Remy

    Using Server Manager, to connect without specifying a server, then run a command to sessions list for your device and you will see the user and the server.
    Best regards
    EvtLoglvl

  • How to send an email with the link that has the user id?

    Hello everyone, I'm trying to send an email with the link that includes the user id. After users click the link, they should be able to see the form with their information that has been previously fulfilled. So my question is after I have send email how and what is the best way to get information and show it to the user. What should be separate page with the cfquery limited on the id user or something else? If anyone has an idea of what is the best way to do it please let me know. I already have my code who send e-mails.

    You save all the fields submitted initially to a database?  If so, run a query and then convert them to the form field, query values. I don't know what looks like your data (or database), but a simplified version might look like this.

    SELECT FirstName

    OF SavedFormTable

    WHERE ID =

  • Have not received notification of the user who bought the AppWorld or Paypal

    Hello world:

    I had a problem,

    When the user has purchased my product, I received notifications from AppWorld or Paypal, who can help me, how do I received nofification?

    When the user purchased through paypal to appworld, I need to receive a notice may obtain the user PIN and add it to my activation server.

    App World doesn't send notification of purchase by mail. However if you use Dynamics licenses you must reecive the user PIN number as a parameter.

  • notifications to the user... push or?

    Hello

    I'm new to blackberry platform... this question is a Council rather than a solution...

    I develop application for a conference... and wish to inform users of the current session, if this session, they added to their calendar...

    How can I give notice to subscribers users that their session will start?

    I also started the evaluation of push notifications... and also given to save the timings of notification in a database and setting alarms...

    Which method do you think would be better?

    -> If alarms are better... can you point me to the alarms API reference page.

    Thank you

    Ah yes, I misunderstood.

    I've been to many conferences of BlackBerry, as they seem to do is to provide an application that contains all the time for all events, and you can view a 'calendar' and choose the ones you want to go.  It can be added to the calendar of the user or the application of e itself can prompt the user.  In this case, because the information is on the phone, there is no need reminders pushed from a server, even if it is of course possible if the update on the phone also passed some information back t the server.  Passing back information the server might be useful anyway, so that if people choose some popular sessions, you can tell them that the session is complete.

    I do not see the need to push for this application services in normal situations.  However push services could come very useful for update you details on the phones if you need, say if an additional session is allocated.  or maybe if someone registers for an event but can not enter, then you'll find someone of another change of heart and no longer go to a popular, you can notify all persons who have registered an interest and let them compete for a dressing room.

    I suspect that you will actually spend more time the application design and operate correctly you will pass on the user update mechanisms.

  • How to send a Notification to several email id Workflow Oracle

    Hello

    I have a requirement in R12.1.3 where we send same email Notification multiple identification of in Oracle Workflow. Get us identification of email running for each transaction.

    Current workflow process is notification is sent to an email Id which we capture at the transaction level. But now the Client wants to enter multiple Emails separated by commas.

    Please guide / suggest that the way in which we can send multiple Emails notification. How we deal with several e-mail id

    An Option I can think of is to use the loop in the flow work create separate role for each Email Id, then pass it to the Notification in the loop. But do not know if it works or not. Y at - it another option that we can try.

    Concerning

    Udit

    Udit,

    Please see if these documents help.

    How to define additional or multiple recipients of a Notification of Workflow e-mail Message? (Doc ID 422937.1)

    #Wfm_cc list attribute does not send Notifications to the recipients (Doc ID 845206.1)

    How do I add Mutiple/additional recipients to Workflow E-mail EMAIL_PO_PDF (Doc ID 886409.1)

    Installation notes for electronic purchase orders (Doc ID 198539.1)

    Thank you

    Hussein

Maybe you are looking for