Browser working behind doors closed, not in the enterprise space

I'm very new in the development of BB 10.

Current aid Momentics IDE 2.1.2 on Mac OS

I want to deploy a simple application that invoke the browser to work with a page of links/intranet within the company / work space.

I started with the model of Cascades and pasted only the necessary lines in the file main.cpp:

#include "applicationui.hpp"

#include 

#include 
#include 

#include 
#include 

using namespace bb::cascades;

Q_DECL_EXPORT int main(int argc, char **argv)
{
    Application app(argc, argv);
    navigator_invoke("https://home.intranet.local",0);
    exit( EXIT_SUCCESS );
    // Create the Application UI object, this is where the main.qml file
    // is loaded and the application scene is set.
    ApplicationUI appui;

    // Enter the application main event loop.
    return Application::exec();
}

It works pretty well (as expected) while debugging / running on the device in the debug or release configuration in the private space. When deploying via BlackBerry Enterprise Server for some BB10 device, the application opens but closes immediately before opening the browser to work.

Does anyone know where is the differnce / what can I do, or what is missing?

Thanks to the community.

The solution for this is a bit crazy:

Deployment an application via a BlackBerry server seems to make the behavior to run this application much faster than the deployment through the IDE, even in race configuration (no debugging). Finally each of the above approaches will work, but you have to put a period or sleep between invoking the browser and exit the application.

Put a second two delay between the app works fine. The delay is correct when deploying via IDE but only half a second on Q10 (which also works) when deploying via the BlackBerry server.

Excerpt from applicationui.cpp:

...
// necessary includes for snippet
#include 
#include 
#include 

using namespace bb::cascades;
using namespace bb::system;

ApplicationUI::ApplicationUI() :
        QObject()
{
...
    InvokeRequest request;

    // Setup the request properties according to the current configuration
    request.setTarget("sys.browser");
    request.setAction("bb.action.OPEN");
    request.setMimeType("application/xhtml+xml");
    request.setUri("https://home.intranet.local");

    // Start the invocation
    InvokeManager invokeManager;
    invokeManager.invoke(request);

    // Pause for invocation to proceed
    delay( 2000 );

    //Close the app after invoking the browser.
    Application::instance()->requestExit();
}

Tags: BlackBerry Developers

Similar Questions

  • I've updated the motherboard (Asus) and now Nvidia card beats nice work my PC do not play the .mp4 files

    I've updated the motherboard (Asus) and now Nvidia card beats nice work my PC do not play the .mp4 (with VLC, Quick time player ect..) files

    And what about the Windows Media Player12?

    You must uninstall and reinstall VLC Media Player, it seems codecs has been corrupted. You can also download and install ffdshow

  • Get this error on the dashboard for the last 2 days: Please try again later we are working to improve your experience of the Enterprise Dashboard.

    When you try to run the company, I received this error for the last two days.  I have tried using another browser and ended in the same results.

    Please try again later

    We are working to improve your experience of the Enterprise Dashboard.

    Hello

    Your proof of cloud creative's 'VIP' instead of the company, so you would not normally manage your CC on the Enterprise Dashboard, but you had some Digital Marketing rights so that's why you have a dashboard.

    I am informed that currently some adjustments are made to your dashboard for Digital Marketing and that it should end soon.

    In the meantime your creative team of cloud management should be available through creative.adobe.com

  • Windows 8 is not recognizing the extra space in the hard disk resized

    I was out of the room on the virtual drive of Windows 8 in VMWare Fusion 5.02. I increased the size of the disk in the settings, but when I run Windows, he does not see the extra space. Obviously, I have to leave something out of the process. If you can help me, please let me know what I am doing wrong. Thank you!

    Have you ever increase the NTFS of Windows partition in disk management or you do not see the additional disk space

    André

  • Rh9 link works in preview but not on the generated version

    Question: I have the theme with link to a MS Excel file. When I make a point of view, the link action behaves correctly, by displaying the file download dialog box. When I generate the layout (WebHelp), the link action does not respond.

    Notes:

    • The file appears in the two c:\appname\! SSL! \WebHelp\,rules_summary_1.xls , and c:\appname\Rules_Summary_1.xls

    (not sure if the case of filenames questions)

    • I created a test subject and got the same behavior

    Any ideas?

    Thank you

    -bruce.

    Hello

    It is probably the result of having Mark of The Web (MOTW) activated at the time of publication and that you view using Microsoft Internet Explorer as your browser.

    If you have decided to copy the files on a web server for your end users to open, the links should work properly.

    If you want to test your local PC to ensure that things work, you can disable MOTW and deal with problems of boxes dialog IE or you can relax in the Internet Explorer security to allow to run active content. Your call.

    What version of IE are you using?

    See you soon... Rick

    Useful and practical links

    Wish to RoboHelp form/Bug report form

    Begin to learn RoboHelp HTML 7, 8 or 9 in the day!

    Adobe Certified RoboHelp HTML Training

    SorcerStone blog

    RoboHelp EBooks

  • whenever I click on 'control panel' or 'computer', it displays "windows Explorer has stopped working". It does not display the display of the control panel.

    Whenever I want to check computer (memory) space available on each drive, click on the 'computer' logo, it does not display the response on the screen. Instead, it displays a screen with a message "Windows Explorer has stopped working" for a few minutes and then returns to the original display.  I get the same answer, whenever I click on the "control panel" logo  I need advice how to solve this problem. Thank you.

    Hello

    Did you change your computer?

    I suggest you follow the link (this also applies to windows vista)

    Explorer Windows stopped working

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-performance/Windows-Explorer-has-stopped-working/6ab02526-5071-4DCC-895F-d90202bad8b3

  • When I try to play a CD/DVD it works but it does not open the file, you can not see or hear something

    Cannot get the CD/DVD player to play

    Hello

    Step 1: Please do all the same underneath if you did some before as is often total
    a process that solves the problem.

    Try this - Panel - Device Manager - CD/DVD - double click on the device - driver tab.
    Click on update drivers (this will probably do nothing) - RIGHT click ON the drive - uninstall.
    RESTART this will refresh the default driver stack. Even if the reader does not appear to continue
    below.

    Then, work your way through these - don't forget the drive might be bad, could be a coward
    cable or slight corrosion on the contacts (usually for a laptop) and other issues.

    Your CD or DVD drive is missing or is not recognized by Windows or other programs
    http://support.microsoft.com/kb/314060 - a Mr Fixit

    Try this fix manually if the Fixit 314060 does not work
    http://www.pchell.com/hardware/cd_drive_error_code_39.shtml

    Your CD or DVD drive is missing or is not recognized by Windows or other programs-
    a Mr Fixit
    http://support.Microsoft.com/kb/982116

    The CD drive or the DVD drive does not work as expected on a computer that you upgraded to
    for Windows Vista
    http://support.Microsoft.com/kb/929461

    When you insert a CD or a DVD, Windows Vista may not recognize the disc
    http://support.Microsoft.com/kb/939052

    Your CD or DVD drive cannot read or write media - A Mr Fixit
    http://support.Microsoft.com/GP/cd_dvd_drive_problems

    CD/DVD drive does not appear in Windows Vista, or you receive this error in Windows
    Vista installation after booting from the DVD (AHCI)
    http://support.Microsoft.com/kb/952951
    Drive CD - R or CD - RW Drive is not recognized as a recordable device
    http://support.Microsoft.com/kb/316529/

    Hardware devices not detected or not working - A Mr Fixit
    http://support.Microsoft.com/GP/hardware_device_problems

    Another possibility is that the cables are loose. Remove ALL power, then make sure that the cables in both
    ends. Remove and replace, do not just tight. For laptops, you can often clean power and
    contacts data with a pencil eraser.

    Some DVD players do not use the Windows default drivers so check with the manufacturer of system and
    manufacturer of device to see if there is a firmware or drivers for your drive if necessary.

    ===============================

    Step 2: You have disc problems as the CD/DVD is actually 4 discs in 1 case (CD & DVD
    Burn and CD and DVD read). So it is not unusual for 1 or 2 operational so that other parts
    do it right.

    Did you follow the Troubleshooting Guide for the reader who still does not work? There are
    the entries in registry that the troubleshooter does not solve and those who "might" be the cause.

    Check with your Maker system and a device for the two possible firmware updates and
    the correct registry entries for your car.

    Here are the keys that I of course are those in question - for the subkeys of the CD/DVD drive
    as there will be other subkeys in these keys. Do not forget to ask specific keys involved as well as
    the parameters.

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {4D36E965-E325-11CE-BFC1-08002BE10318}

    -----------------------------------------------------------------------

    You can probably find more info here and maybe even the exact registry for your CD/DVD settings
    drive from someone with the same model.

    Forums - a lot of expert real help
    http://Club.myce.com/

    CD/DVD units
    http://www.myce.com/storage/

    Use DevManView to locate the CD/DVD in the registry (be careful and do a prior Restore Point)
    nothing change) - find the DevManView device and then make a right click on it free in RegEdit.

    DevManView - free - an alternative to the standard Windows Device Manager, which displays all the
    devices and their properties in flat table, instead of the tree viewer
    http://www.NirSoft.NET/utils/device_manager_view.html

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • ContextMenu working on 8120 but not on the 8900

    I have this application running on the OS 8120 v4.3.0.115 and 8900 OS v4.6.1.231 and get a strange problem with the context menu not appearing is not on the 8900 but for 8120 his job very well.

    This is my code:

        /*Override this to add custom menu items.*/
        protected void makeMenu( Menu menu )
            {
                Field focus = UiApplication.getUiApplication().getActiveScreen().getLeafFieldWithFocus();
                if(focus != null)
                    {
                    ContextMenu contextMenu = focus.getContextMenu();
                    if (contextMenu !=null)
                        {
                            menu.add(contextMenu);
                            menu.addSeparator();
                        }
                    }
                menu.addSeparator();
                menu.add(_closeItem);
            }
    

    Any who have similar problems with the context menu for ObjectChoiceField does not not on the 8900?

    figured it out. I have replace him-> public boolean trackwheelClick (int status, int time)
    and this for a reason any did not work with the 8900. Still strange that he worked on the 8100.

    But somehow rewrote this code and now its work on both devices.

  • startAudio works on a simulator, not on the device

    I've got and 8310 and 8100 and none of them will play any audio device.  This works very well in the Simulator. Probably something stupid I do because I'm new to the development of BB, but I am simply not see:

    final class AudioHelper {
        private static final int VOLUME = 100;
        private static final int FAILED = 2;
        private static final int SUCCESS = 1;
    
        private static short[] failedAudio =
        {
            100, 50, 200, 50, 200, 50, 100, 50, 200, 50
        };       
    
        private static short[] successAudio =
        {
            500, 300, 500, 300, 500, 300, 500, 300, 500, 50
        };
    
        public static void Play(int noise) {
            short[] tune = noise == SUCCESS ? successAudio : failedAudio;
            if (Alert.isBuzzerSupported())
                Alert.startBuzzer(tune, VOLUME);
            else if ( Alert.isAudioSupported())
                Alert.startAudio(tune, VOLUME);
        }
    }
    

    Please note that the setVolume method only accepts values in increments of 10.  A value greater than this is ignored.  You must gradually increase the volume to make sure that it is set at a level you can hear.

  • Windows Update does not work: WARNING: ECP: could not validate the downloaded cab file digest

    2014-01-23 09:52:03:516 808 d84 PT + ServiceId = {9482F4B4-E343-43B6-B170-9A65BC822C77}, URL of the server = https://fe1.update.microsoft.com/v6/ClientWebService/client.asmx
    2014-01-23 09:52:06:031 808 d84 PT WARNING: ECP: could not validate the downloaded cab file digest from http://download.windowsupdate.com/msdownload/update/common/2013/07/8488969_0c6ef7063e4597732f47750e8c583f83cb7f728e.cab with error 0 x 80091007
    2014-01-23 09:52:06:031 808 d84 PT WARNING: ECP: this trip contained some optimized updates failed. New number of update = 34, former County = 60
    2014-01-23 09:52:06:656 808 d84 PT WARNING: synchronization of updates: 0x8024402f
    2014-01-23 09:52:06:656 808 d84 PT WARNING: SyncServerUpdatesInternal failed: 0x8024402f
    2014-01-23 09:52:06:656 808 d84 Agent * WARNING: could not synchronize, error = 0x8024402F
    2014-01-23 09:52:06:656 808 d84 Agent * WARNING: exit code = 0x8024402F
    2014-01-23 09:52:06:656 808 d84 Agent *.
    2014-01-23 09:52:06:656 808 d84 Agent * END * Agent: finding updates [CallerId = Device Driver recovery customer] of
    2014-01-23 09:52:06:656 808 d84 Agent *.
    2014-01-23 09:52:06:656 808 d84 Agent WARNING: customer WU didn't search for the update with error 0x8024402f
    2014-01-23 09:52:06:656 808 125 c COMAPI > COMAPI - RECOVERY -: search [ClientId = Device Driver recovery customer]
    2014 01-23 09:52:06:656 125 808 c COMAPI - updates found = 0
    2014-01-23 09:52:06:656 808 125 c COMAPI - WARNING: exit code = 0x00000000, result code = 0x8024402F
    2014-01-23 09:52:06:656 808 125 C COMAPI -.
    2014-01-23 09:52:06:656 808 125 c COMAPI - END--COMAPI: search [ClientId = Device Driver recovery customer]
    2014-01-23 09:52:06:656 808 125 C COMAPI -.
    2014-01-23 09:52:06:656 808 1474 COMAPI WARNING: operation failed because the previous error, hr = 8024402F
    2014-01-23 808 1474 COMAPI FATALE 09:52:06:656: impossible search asynchronous complete. (hr = 8024402F)

    The file is:
    http://download.windowsupdate.com/msdownload/update/common/2013/07/8488969_0c6ef7063e4597732f47750e8c583f83cb7f728e.cab

    Incorrect?

    I tried several suggestions to fix Windows Update, none work. I have reset the PC to factory settings and still does not work. A daughter of MS tech support spent a whole day trying to solve this remote, not a not fix it.

    Then... I'm starting to think this isn't a problem on my PC, I'm good?

    Hey Rolo,

    Error 0x8024402F means WU_E_PT_ECP_SUCCEEDED_WITH_ERRORS. These errors can be caused by one of the following problems:

    • Programs or processes that interfere with Internet communications
    • Problems of computer resources
    • Strong Internet activity
    • Recoverable database errors

    Perform the steps from the link below and see if it helps.

    http://support.Microsoft.com/kb/836941/en-us

    Answer please if you have any questions.

  • Client vSphere 5.0 works on network, but not via the SSH tunnel

    Hoping someone can help you.

    Seems that others have this problem as well.

    Can connect to the network, but not through an SSH tunnel.

    On the network, I am invited to accept/ignore a SSL certificate.  This does not happen when trying to connect remotely (via an SSH tunnel).

    During troubleshooting, I port passed almost all the ports TCP, starting w / ports 80, 443 and 902.

    Through the SSH tunnel, via a browser, I can successfully access https://127.0.0.1 (VMware server), but the client software will not complete the connection, w / error message: «...» "The client could not send a request to the server."

    Any help would be appreciated.

    Thank you.

    Managed to understand this myself, having invested in a way more time I should have.

    This announcement in the hope that it will help others.

    In your SSH client, port forward with the help of one local loop, IP OTHER THAN 127.0.0.1 (such as 127.0.0.2 for example).

    Port 127.0.0.2:443 before--> IP:443 target

    127.0.0.2:902--> target IP:902

    127.0.0.2:903--> target IP:903

  • page appeared on closing my browser stating that I do not have the latest version, it uses the version 30 may be phishing scam

    See above

    It sounds like phishing. This happens every time, or he could have one pop - under page to a random site that does not necessarily indicate something lingering on your computer?

    One of your extensions was said to be often bundled with other software, so you can check the Control Panel, add/remove programs to see if something unexpected is. Click on the column heading "installed on" group by date, which is useful to identify the bundle items.

    If you find other strange symptoms, see our article on support for suggested scanning/cleaning tools: Troubleshooting Firefox problems caused by malware.

  • How to delete the history of google, tried to delete the browsing history, that works, but it does not delete the site from google (in the middle of the page next to the images and videos

    How to delete the history in the Google search box in the middle of the page under Web new video Images

    http://www.Google.com/support/WebSearch/bin/answer.py?hl=en&answer=465

    See if help above.

    See you soon.

    Mick Murphy - Microsoft partner

  • Empty the Trash: file > empty trash should work in any view, not only the display of the trash

    38.3.0 W8.1, W10
    It is probably an enhancement request...

    Often, I emptied the Recycle Bin. There are 3 things I would like to improve.
    (1) I have to switch to the display of the trash, then on the file menu, select file > empty trash. I should be able to do this from any view.
    (2) the trash is not visibly withdrawn my trash review - I have to move the mouse up and down the display of the trash and then items visibly disappear.
    (3) I would like to be able to put a button in the toolbar to remove all the waste rather than having to go to the file menu.

    I've been using Thunderbird is probably 3 + years old and it has been very reliable, I think it's a good product. Updates work fine.
    Thank you

    Nigel

    I wish I could put a button in the toolbar to remove all the waste rather than having to go to the file menu.

    Install this add-on.
    https://addons.Mozilla.org/en-us/Thunderbird/addon/empty-em/

  • The arrows back no longer work and I do not see the url of the site that I visit

    The back and the navigation arrows in the upper left corner forward are shady (not opaque) and Don't work. It's like I opened a new tab to go to a website and there is no page back to reach - except that I navigated to the page in the same tab.

    Click on the orange button Firefox, go to modules, then Plugins and disable this advertising software that you have installed:

    • My search on the Web

    Information about my research on the Web can be found here: http://en.wikipedia.org/wiki/My_web_search

    You can possibly have a corrupted file places.sqlite . See this article on how to fix the problem: http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

    If this answers your question, please click the button solved next to this post after logging in to the forum. This will help others looking for a solution for the same topic.

    Thank you.

Maybe you are looking for

  • Problems of updating BIOS on Satellite L40 - 15G

    Good afternoon. I have Toshiba Satellite L40 - 15G and I want to put 4 GB of ram (2 x 2).It works with 3 GB but with 4 GB it just does not start - gives me a blue screen. I read on the internet and discovered that I have to update my BIOS (my version

  • Satellite T110 - wireless works beside router

    Hello My wireless was working fine until about 3 days ago and all of a sudden I started having problems. Basically, the wireless only works when I'm sitting next to the router. As soon as I if away (more than 5 meters), it starts to cut. Sometimes it

  • I can't retrieve a file.

    I did some changes on a MS WORD file. When I closed the file I clicked 'NO' when asked if I wanted to save the changes. I tried to use system restore, but it cannot restore the file. I spent six hours working on this, and I relish the thought of agai

  • decommissioning of the windows 8.1 for windows 8

    I have a HP Pavilion laptop 15-E016TX (3rd Gen Ci5 / 4 GB/1 TB / Win8 / graphic 2 GB) who came with 64-bit windows 8 unique language. It came with a single 906 GB C drive and a recovery drive D 26 GB. I partitioned manually following F and G 350 GB d

  • No sound tv HDMI is connected only computer laptop

    HP pavilion g6 during playback of movies however taken on sound tv hdmi however the laptop will not enter the tv? Help, please