WebWorks 10 - launch Variables

Is there a global variable of BB 10 Webworks differntiates between when a user or an onInvoke (push notification) launches the app?

The problem is I want to exit the application when a push notification is received and processed.

I don't want to leave the app when a user launches and receives a push notification.

I think that a single variable availble in the bb platform doing it, but am not sure, I have not found anything concrete in the documentation.

Thank you

Hi pzill4,

When it is called with a push notification, the blackberry.invoked method fires, so you can get out of here:

blackberry.event.addEventListener("invoked", onInvoked);

Check the example in the: https://developer.blackberry.com/html5/apis/blackberry.invoked.html#.event: call

Blog here: http://devblog.blackberry.com/2012/08/blackberry-10-webworks-push-app/

Tags: BlackBerry Developers

Similar Questions

  • Application of the WebWorks App launch

    Hi all

    I'm still new to the development of BlackBerry, but I'll try to find a way that if I have a WebWorks app (application) and a native app B, I would like to launch Application B with data of Application. Once the Application B is done, it must then be able to transmit some data more back to Application A.

    I started to look around and read through the api blackberry.launch

    https://origin-bdsc.webapps.BlackBerry.com/HTML5/documentation/ww_webrefs/blackberry_launch_971534_1...

    but from there I see that you are able to launch specific applications.

    All advice is appreciated.

    Kind regards

    Michael

    Hi Michael,

    You can do this today on BlackBerry OS 5.0 - BlackBerry 7 (J2ME platform) using the blackberry.invoke.JavaArguments API:

    https://bdsc.webapps.BlackBerry.com/HTML5/APIs/BlackBerry.Invoke.JavaArguments.html

    You can also leverage plans.  In the J2ME platform, you can create a hyperlink with this beginning: or email: or by sms: to invoke the corresponding application when clicked.  Here's an example page:

    http://BlackBerry.github.com/WebWorks-samples/kitchenSink/HTML/browser/schemes.html

    Thus, some MIME types are supported.  For example, if you had a link to a file external doc of your WebWorks App (for Tablet OS), so your users have to click on it then it would launch the corresponding application (DocsToGo).

    See you soon,.

  • How to identify a webworks app launches for the first time...

    I am designing my webworks app to prompt the user to accept a license agreement before using the application for the first time. If they accept that the application works as usual, if they decline the application does not load and it ends.

    Is to do it in a Webworks app without the use of a store like the SD card anyway?

    I don't want to use the SD card as a store because it limits the number of users who can use the app (even if these SD cards are now pretty much standard).

    Does anyone have any suggestions?

    EC

    You can store the information using the API file on the local file system IO... You don't need to use the SD card... just a local path on the file system of the device.

  • It is possible to program a HBR uses the Windows Scheduler?

    It is possible to program a (business rule) HBR running uses the Windows Scheduler? I know how to program calc scripts using Maxl, BATCH BACK and Windows Task Scheduler.
    Thank you

    In the post, I gave a link to it through the use of the PTRC, I might as well post the entire post again because I know of links must be difficult to click and then read...

    Yes, you can use the command-line rule business Launcher, in V11 is available in \Hyperion\products\Essbase\eas\console\bin (9.3 \Hyperion\AnalyticAdministrationServices\console\bin)

    Is an example of how to use it: -.

    If there is no prompt implementation first creates a file and put the following information in him filling the servername, the application name and the name of db example

    ExecDB: "planning/servername/appname/dbname.

    Save as .xml file, so something like connect.xml

    To use the Launcher command-line command from the directory where the utility is the command would be so

    Cmdlnlauncher - Sservername - Uusername - Ppassword - rrule - fconnect.xml

    If you have variables in your article, you can

    In environmental assessments do a right-click on the rule and select "Automate launch Variables", fill in the details and then save is an XML format.

    You just need to reference the xml code in the batch script as described above using the - f parameter.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • I tried repeatedly webworks install SDK for 10 BB and BB OS 7 or an earlier version, but failed to launch the SDK succesfully.

    I tried repeatedly webworks install SDK for 10 BB and BB OS 7 or an earlier version, but failed to launch the SDK

    successfully.

    Finally, Iam able to build the package correctly on google chrome emulator Ripple by following the instructions

    https://developer.BlackBerry.com/HTML5/documentation/creating_helloworld_for_bb_os.html.

    Now, I asked for signature keys. But how to operate the get nd of emultor my ex helloworld application

  • BlackBerry WebWorks app via a URL with the parameters of launch?

    I have an application of WebWorks I want to start with a URL to the browser and pass parameters to query URL to the application in this way. Is this possible? How? I would be happy to use HttpFilterRegistry or API call, but I don't see how to use these approaches to get my WebWorks App settings, even if I write a custom extension. Example of code would be very useful, especially to consume the parameters. Or at least an indication of which API (s) for this.

    This should be supported by the framework. What I would like to recoemmend is simply invoke the application according to the normal and placing the parameters in the URL to the standard '&' "?" rating.

    Then take advantage of the class UTIL. JS out of the parameters passed required...

    https://bdsc.webapps.BlackBerry.com/HTML5/APIs/BlackBerry.utils.URL.html

    (If you need help, citing the app, it is done as invoke any other java application on the device)

    R

  • question: webworks upgraded to 1.0.3.8 SDK version, "file not found" error on cmd at the launch on Dev-alpha 10.0.6

    Hi all

    I have updated the Webworks SDK to its new version 1.0.3.8. The applications have been installed successfully in the previous version... now, when I'm working on that, I am faced with a question saying failed to create the application process: no such file or directory. at the command prompt (start the emulator of the ripple, once packed and signed with success).

    I checked the credentials files, debugtoken file, bar etc. The script src that I am referring is also correct.

    Thank you.

    Is resolved now. I upgraded my bb device - 10.0.9 and everything works fine

  • Can't find variable: webworks (sensors)

    It's weird... It does not hurt anything--it just bothers me

    My application running on a Z10 with active Web Inspector, I get an error repeated (many times) connected at startup - then WebWorksReady comes in and they stop

    Looking at debugging they refer to webworks.event.trigger ('devicecompass'...

    The compass works very well and it's initialization is wrapped in a function called after loading webworks

    I wonder if the sensors feature load something before that WW is ready?

    Comes to Dev Alpha C with 10.1.0.1485 as well, but not so many errors (slower device? Beta OS?)

    This is a minor bug that my colleague, Anzor, recently found too.

    We intend to submit a question, but we invite you to make on the public issue tracker and we will worsen internally.

    As far as I can see, you do not get the error messages thrown unless you do a CTRL + r in the WebInspector. We believe that it is because the listeners are not detached, or do not remove only not soon enough, when you perform this update.

  • Launch the vith scenario invites a variable

    Hi experts

    I want to run a script from the command prompt by using a variable, how do I do this?
    Now I can run only without variable. StartScen.bat - SCEN_NAME = TEST_SCD1-SCEN_VERSION = 001 - DEVELOPMENT-AGENT_CODE = CONTEXT = "v = 5"

    Thanks and greetings
    Frank

    Hello

    StartScen.bat - SCEN_NAME = TEST_SCD1-SCEN_VERSION = 001 - DEVELOPMENT-AGENT_CODE = CONTEXT = "v = 5' =

    Thank you
    Fati

  • After a clean install, Yosemite Mail crashes at launch

    I have re-installed Yosemite and upgrade 10.10.5 three days ago. Yesterday, I recreated 11 non-iCloud email accounts. I launched Mail and proceeded to uncheck the option "automatically detect and maintain the parameters" and to replace the port numbers incoming and outgoing according to the instructions of the ISP, I consulted in order to avoid the main Contacts and issues of mail in the course of the two months since my original Yosemite clean install - issues that have worsened to the point where I was advised in these forums to re - install. If I had known everything uncheck this option, perhaps none of these problems would be developed?

    After unchecking the option and change the port numbers for the incoming server and outgoing 11 IMAP accounts, I took all online accounts. Mail seems to be stable. I quit Mail and relaunched it five minutes later, just to be sure. He froze immediately on launch; There is not enough time to click on anything before spinning beachball appears and never goes away. I checked the Sys Prefs/Internet accounts: no problem.

    Here are the logs from Console for today attempted launch of Mail:

    06/07/2016 6:24:16.318 PM Mail [1318]: AllSignatures.plist: read plist error: error Domain = NSCocoaErrorDomain Code = 260 "the file 'AllSignatures.plist' could not be opened because there is no file of this type." UserInfo = 0x60800066c640 {NSFilePath=/Users/mother/Library/Mail/V2/MailData/Signatures/AllSignatures.pli st, NSUnderlyingError = 0x608000650ce0 "the operation could not be completed. No such file or directory"}

    06/07/2016 com.apple.xpc.launchd [1 6:24:16.379 PM]: (com.apple.imfoundation.IMRemoteURLConnectionAgent) the _DirtyJetsamMemoryLimit key is not available on this platform.

    06/07/2016 com.apple.xpc.launchd [1 6:24:17.853 PM]: (com.apple.imfoundation.IMRemoteURLConnectionAgent) the _DirtyJetsamMemoryLimit key is not available on this platform.

    06/07/2016 6:24:18.409 PM Mail [1318]: dnssd_clientstub DNSServiceProcessResult called with DNSServiceRef without ProcessReply function

    06/07/2016 6:24:18.409 PM Mail [1318]: dnssd_clientstub DNSServiceProcessResult called with DNSServiceRef without ProcessReply function

    06/07/2016 6:24:18.410 PM Mail [1318]: dnssd_clientstub DNSServiceProcessResult called with DNSServiceRef without ProcessReply function

    06/07/2016 6:24:18.410 PM Mail [1318]: dnssd_clientstub DNSServiceProcessResult called with DNSServiceRef without ProcessReply function

    06/07/2016 6:24:18.410 PM Mail [1318]: dnssd_clientstub DNSServiceProcessResult called with DNSServiceRef without ProcessReply function

    06/07/2016 6:24:18.410 PM Mail [1318]: dnssd_clientstub DNSServiceProcessResult called with DNSServiceRef without ProcessReply function

    06/07/2016 6:24:18.410 PM Mail [1318]: dnssd_clientstub DNSServiceProcessResult called with DNSServiceRef without ProcessReply function

    06/07/2016 6:24:18.410 PM Mail [1318]: dnssd_clientstub DNSServiceProcessResult called with DNSServiceRef without ProcessReply function

    06/07/2016 6:24:18.477 PM Mail [1318]: dnssd_clientstub DNSServiceProcessResult called with DNSServiceRef without ProcessReply function

    06/07/2016 6:24:18.477 PM Mail [1318]: dnssd_clientstub DNSServiceProcessResult called with DNSServiceRef without ProcessReply function

    06/07/2016 6:24:19.059 PM Mail [1318]: [IMAP] should untagged first response box495.bluehost.com

    06/07/2016 6:24:19.146 PM Mail [1318]: [IMAP] should untagged first response box495.bluehost.com

    06/07/2016 6:24:19.532 PM accountsd [336]: cannot find executable for CFBundle < /System/Library/Accounts/Notification/CloudDocsAccountNotificationPlugin.bundl e > 0x7fc1e9d159f0 (unloaded)

    06/07/2016 6:24:19.756 PM fontd [296]: BUG in client libdispatch: dispatch_mig_server: mach_msg() has memory invalid (ipc/send) - 0x1000000c

    06/07/2016 6:24:19.756 PM Mail [1318]: CoreText CopyFontsForRequest received mig CPI error (FFFFFFFFFFFFFECC) font server

    06/07/2016 6:24:19.756 PM Mail [1318]: CoreText CopyFontsForRequest received mig CPI error (FFFFFFFFFFFFFECC) font server

    06/07/2016 6:24:20.351 PM accountsd [336]: enter ShareKitAccountEnabler - didChangeWithType - type = 2 for the [email protected] (843792E4-0915-4FE8-BD0F-D1018E23DF1F) account.

    06/07/2016 6:24:20.372 PM accountsd [336]: AIDA Notification plugin running

    06/07/2016 com.apple.xpc.launchd [1 6:24:20.404 PM]: (com.apple.imfoundation.IMRemoteURLConnectionAgent) the _DirtyJetsamMemoryLimit key is not available on this platform.

    06/07/2016 6:24:20.592 PM icbaccountsd [1326]: error in connection verifying Apple Internalness. Error: Domain = NSCocoaErrorDomain Code 4099 = "could not connect with a helper." (The connection to the service named com.apple.CrashReporterSupportHelper has been invalidated.) UserInfo = 0x7f9e40e0a160 {NSDebugDescription = the connection to the service named com.apple.CrashReporterSupportHelper has been invalidated.}

    06/07/2016 6:24:20.630 PM sandboxd [393]: ([1326]) icbaccountsd (1326) deny com.apple.CrashReporterSupportHelper mach-search

    06/07/2016 6:24:22.825 PM Mail [1318]: [IMAP] should untagged first response box495.bluehost.com

    06/07/2016 6:24:22.920 PM Mail [1318]: [IMAP] should untagged first response box495.bluehost.com

    06/07/2016 6:24:25.409 PM Mail [1318]: [IMAP] should untagged first response box495.bluehost.com

    06/07/2016 6:24:25.503 PM Mail [1318]: [IMAP] should untagged first response box495.bluehost.com

    06/07/2016 com.apple.xpc.launchd [1 6:30:09.116 PM]: (com.apple.mail.3156 [1318]) Service was released due to the signal: completed: 15

    06/07/2016 6:30:12.835 PM spindump [533]: report of hang Saved mail version 8.2 (2104) at /Library/Logs/DiagnosticReports/Mail_2016-07-06-183012_MacBookPro.hang

    06/07/2016 6:31:29.425 PM Console [1336]: unable to connect (_consoleX) out of (NSApplication) (ConsoleX): missing setter or instance variable

    If the problem is still there, try to start safe mode using your usual account.  Disconnect all devices except those necessary for the test. Shut down the computer and then put it up after a 10 second wait. Immediately after hearing the startup chime, hold down the SHIFT key and continue to hold it until the gray Apple icon and a progress bar appear. Startup is considerably slower than normal. This will reset some caches, forces a check for directory and disables all start-up and connection, among other things. When you restart normally, the initial restart may be slower than normal. If the system is operating normally, there may be 3rd party applications that pose a problem. Try to delete/disable the third-party applications after a reboot using the UN-Installer. For each disable/remove, you need to restart if you do them all at once.

    Safe mode - subject

    Safe mode - Yosemite

  • How to activate a demon of via Applescript launch at startup?

    Mini Mac server (end of 2012)

    OS X Yosemite 10.10.5

    I've seen trouble getting shell scripts 2 license server to start when the server starts.  More particularly to start after the network is initialized.  Tests and hit the wall of brick in the last 6 months, I pray that someone here can help.  so far, I used Lingon X 2 to create a demon of launch, found that it does not work.  Supported by writing a script apple the two calling terminal and trying to pass by 'do shell script' or who would work at startup, even if they have worked very well use the "play" button in the Script, the first editor, however, now they are both saying that the command or the file is not found.

    Here is a broken script example:

    the shell script "cd /".

    the shell script ' cd ' / Applications/MATLAB_R2015a.app/etc'.

    the shell script «. "/ lmboot".

    and here's the plist that runs, but seems to be running until the network is initialized:

    http://www.Apple.com/DTDs/PropertyList-1.0.DTD">

    People with disabilities

    EnvironmentVariables

    PATH

    usr: / usr/bin: / bin: / usr/sbin: / sbin: / usr/local/sbin

    KeepAlive

    SuccessfulExit

    Label

    Mathematica

    LegacyTimers

    ProgramArguments

    . / mathlm

    -logfile

    / Log/Mathematica3

    loglevel-

    RunAtLoad

    WorkingDirectory

    / usr/local/Wolfram/MathLM

    I reached out to Wolfram and Matlab, who say it is not their problem.  Apple support has been less excited to try to take it, but they point me in the direction of Lingon, which produced this plist file.

    Any help would be greatly appreciated as having the server restart, then students and teachers unable to reach their applications is frustrating to say the least.

    -Broaddus

    Your AppleScript seems to be by train to run

    /Applications/MATLAB_R2015a.app/etc/lmboot

    and your plist seems to be trying to run

    MathLM

    that could be in one of the following locations

    usr

    / usr/local/sbin

    / usr/bin

    / usr/sbin

    / sbin

    / usr/local/Wolfram/MathLM

    First you must decide what file you want to run limboot or mathlm

    I would then suggest that you put the full path to your plist like this

    / usr/local/Wolfram/MathLM/mathlm

    (if it is correct)

    Your current entry in the plist of. / mathlm might be wrong in two respects, all first if you are assuming that the path variable it will find the executable file, then do not include. / forward, then you need to check if the mathlm is an executable file in one of these folders specified in your path variable. As I said, I would suggest instead of using the full path.

  • Maybe stupid question from new user: that can be done to get the variables displayed in the information tab variables?

    I've been a user of LabVIEW (2011) for about 1.5 years now and just got ahold of TestStand 2014 to try future test as a structure for our needs.

    I am using on and off for about 3 days and there is something that has been driving me nuts.  When I launch a sequence, and that the report comes at the end, there are three tabs on it: report, steps and Variables.  Report and the steps are exactly what I expect to see.   However, the Variables tab is always empty.  Nothing that I found via my technique of checking everything in menus that looks vaguely related and right click things on many items and these menus for other vaguely related things as well.

    I tried looking for references to it, and all I get is the "Main" variable tab you see when you change the sequence, not the one that appears on the report.

    See arrow in the image below:

    I suspect there is something incredibly obvious that I'm missing, but it's driving me crazy here...

    You won't see that filled when a run is complete. The variables are useless at this time here.

    If you want to see this populous tab to suspend execution in the middle.  Or a breakpoint.  Then you can watch the variables at run time.

    Kind regards

  • Sequence takes 10 x more time to perform at the launch of ProcessModel/ProcessModel Plugin

    Hi all

    I am facing a weird problem with a sequence of a fact.

    This sequence is used to describe a new file in sequence according to the data in a database. This sequence works perfectly well.

    When I run only call the callback MainSequence (no processmodel), it runs in 3 seconds.

    Then it is included in my process model (model parallel process) which will be launched just before the recall of the main sequence in each testsocket. There, he runs in # 27 seconds!

    I then tried to use the process template plug-ins, so I did an add-on and called this sequence (seqcall MainSequence in Scripter.seq-online code is in its own file) in ModelPlugin - PreUUT. Same result, #27 seconds!

    As my development belongs to a TS GUI in LabVIEW I inserted PostUIMessage steps in the following order to determine what takes longer to run.

    It seems that it is the piece of code that sets the values of the newly created seqcalls (sometimes more than 1.5 seconds for this)! (see attached sequence, the main group stage only;) Installation step group contains a step previous just to give a 'context' to what's going on here).

    Do - this code is:

    • Create a new sequence in a sequence file (installation)
    • Get a list of variables (table of container containing the search string, the value and the type of a vraiable) from my database (another part of the code)
    • Create and initialize the value of the parameters in this new sequence according to the list of variables (group stage hand; lasts a long time!)

    Any idea on what is happening here? How can I expedite everything?


  • "Call the executable" allows the environment variable "path"?

    Hello

    It seems that when you use the step type "call the executable" you need to enter the absolute path of the executable, or the absolute working directory, in the definition of "call settings" step.  I seem not to be able to put in a *.exe by himself in the path and have the command is found, even if I can't enter this same command on the command line (windows 7).  Is it possible to configure this step to use the windows ' path' environment variable to search for the executable?

    David J.

    You can do the following:

    (1) specify cmd.exe for the file path.

    (2) specify "/c yourexe.exe" for the argument expression

    This will launch a command window and tell it to run your application with the simple file name.

    The reason why you can't put just yourexe.exe in the path of file is that TestStand made its own resolution of file path that is different from what the window command. It uses its directories to search to resolve relative paths. If you do not have to specify an absolute path for the file path parameter, but it must be compared to a TestStand search directory or the current sequence file.

    Hope this helps,

    -Doug

  • cRIO, shared Variables &amp; stand-alone application

    Hello!

    I developed an application very simple acquisition of analog (NI9215) and the activation/deactivation of outputs signals digital (NI9472) using a cRIO (9012). Data are transmitted to the host through shared variables program.

    I created an executable of the code to be run by the cRIO, set it to the "launch on startup" and it worked.

    I did the same thing with the hosting program and created an exe installer. As I use variables shared the result of acquisition of pipes, I have them placed in the support directory (data) when you generate the executable file (Distribution.exe).

    This executable works perfectly on my computer.

    I used the Setup program to install the program on another computer. This computer as its IP address in the same subnet as my computer. But shared variables ever offer data other than their default values so I guess there is a problem of communication...

    Can someone help me?

    Hi zyl7,

    Thanks for the post!

    This is a common problem - I think...

    The problem is that you need to deploy two seté variables shared by two of the llb. You need 'real' variables on the cRIO - and deploy manually (see link) and a second llb on the host pc, which are related to real variables on the cRIO. This is because the local computer get variables shared, which of course are not those with the cRIO data locally.

    Perhaps in clearer terms.

    When you make an exe of a project using shared variables, you must have a local copy of the variables on the deployment computer which are then related to the 'real' shared variables stored on the target - cRIO, in this case.

    This means that in the view of your project:

    (1) Create static variable in the normal Manor on the cRIO.

    (2) create variables shared on the host PC - llb under the Pc host in the project and then select the aliasing and how to link to YOUR PSP.

    Let me know how it works,

    Kind regards

Maybe you are looking for