Invoke the application via a custom protocol URL browser

With the new breed of OAuth2 API such as Pocket there is now more and more need for apps complement the OAuth2 flow in default browser OS outside the Application. It also means that once the Auth process is complete, there must be a way to invoke app or pass data to browser application via redirect URL.

Currently it seems achievable on platforms like android by registering a custom for an application URL protocol handler. This way browser can use redirection what custom URL with a Protocol and application would be invoked via redirects and the address bar of the browser.

I see that current invocation framework supports the URI patterns but I can't make it work, can someone point me to any example of code that allows the invocation of application via browser?

This sample project should show you what files are used for oauth2 https://github.com/kylefowler/foursquare

Tags: BlackBerry Developers

Similar Questions

  • Invoking the application when you click on a link in the browser field

    Hi all

    Is it possible to invoke the application by clicking on a link/button to the browser field?

    The link/button would be a part of the web page displayed in a browser field. If the user clicks on it, it should be taken to the corresponding screen in the native application.

    Can someone let me know how this can be done in BlackBerry?

    Thank you much in advance.

    I could it implement successfully with the help of HTTPFilterRegistry (net.rim.device.api.io.http.HttpFilterRegistry).

    An example of the same project is available in the samples of BlackBerry in the Eclipse IDE (HttpFilterDemo).

  • Changing the State of the application from a custom component

    Hello, I have several custom components that are included in the original application.

    When I try to change the State of a custom component, I get an error saying "undefined state: name of the State." How can I change the State of the application from a custom component? All States are defined in the original application.

    @linrsvp,.

    If you are using Flex3 try Application.application.currentState = "somestate;

    If you use Flex4 try FlexGlobas.topLevelApplication.currentState = "somestate;

    Don't forget to import the namespaces corresponding to the above.

    Thank you

    Jean Claude

  • Invoke the application of a Message

    Hi guys,.

    I would like to know if it is posible to invoke a java application that is customized using a tag html (href or something like that) which is part of the e-mail message.

    (for example)

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

    The e-mail message body

    Please accept this agreement

    Accept Decline

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

    I want to select Accept and launch an application.

    No idea how I can get this approach, or a suggestion.

    Thanks for your time.

    I think that this article will help you.

    How to-to comparison models in the BlackBerry smartphone to provide a user experience integrated applications
    Article number: DB-00525
     
    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800608/...

  • Removal of the model of the application via the API - 11 g

    Hi all

    I try to delete a query template customized via API but is "outdated data Exception error".

    Code:
    {} public static void deleteCustomRequestTemplate (long requestTemplateKeyValue)
    System.out.println ("inside deleteCustomRequestTemplate");
    OIMClient oimClient = null;
    try {}
    oimClient = Utility.getConnection ();
    RequestTemplateService requestTemplateService = (RequestTemplateService.class) oimClient.getService;
    System.out.println ("before you remove the request template');
    requestTemplateService.deleteTemplate (requestTemplateKeyValue, new Timestamp (new Date () .getTime ()));
    System.out.println ("application model has been deleted");
    } catch (StaleDataException sde) {}
    sde.printStackTrace ();
    } catch (Exception e) {}
    e.printStackTrace ();
    }
    }

    Error:
    oracle.iam.platform.kernel.StaleDataException: stale data while editing or deleting the ID 123 of the application model.
    at oracle.iam.request.repository.RequestTemplateManager.verifyStaleData(RequestTemplateManager.java:567)
    at oracle.iam.request.repository.RequestTemplateManager.deleteTemplate(RequestTemplateManager.java:495)
    at oracle.iam.request.impl.RequestTemplateServiceImpl.deleteTemplate(RequestTemplateServiceImpl.java:57)
    at oracle.iam.request.api.RequestTemplateServiceEJB.deleteTemplatex (unknown Source)


    It means I have to restart my DB server or am I in the wrong way?

    Hello

    Here is the code under test, it worked fine:

    RequestTemplateService requestTemplateService = (RequestTemplateService.class) oimClient.getService;
    RequestTemplate requestTemplate = requestTemplateService.getTemplate ("Testing");
    System.out.println ("before you remove the request template');
    System.out.println ("last modified Time" + requestTemplate.getLastUpdatedTimestamp ());
    requestTemplateService.deleteTemplate (requestTemplate.getId (), requestTemplate.getLastUpdatedTimestamp ());
    System.out.println ("successfully removed ::");

    Kind regards
    Raghav.

  • Invoke the application using the link

    Hi all, I'm calling my application for the bb.action.VIEW and bb.action.OPEN actions using uri with custom file extension (file:// scheme) by sending the same app on another device uri, in this process after acceptance and download I am able to perform the invocation.  But I wanted to send a link in the form of uri, by clicking on it, he'll call the application, is there is no way to do this.

    If I understand your usecase, I think this will help.
    https://developer.BlackBerry.com/native/documentation/Cascades/device_platform/invocation/active_tex...

    If not, please provide details.

  • Invoking the application of a midlet blackberry email client.

    Hi guys, I am trying to invoke the blackberry native E-mail application, trying to do until now I'm able to view email compose screen and the data filled in, but my problem is after he gets invoked from in my application it never get all events, as I can not kick it, the BlackBerry shortcut menu does not appear the menu only one that works is the menu that appears by pressing the keys (trackball).

    All events, including the characters of that type in the body of the message i don't get it.

    Please help me.

    what I have done until now is the following:

     net.rim.device.api.system.Application.getApplication().invokeLater(new Runnable()
                {
                    public void run() {
                        MessageArguments mArgs = new MessageArguments                                          (MessageArguments.ARG_NEW,to,msubject, mbody);
                        Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, mArgs);
    
                    }
                });
    

    with the code above in invokeLater, I even tried without invokeLater but in vain.

    my scenario is a user clicks an option in the menu contextual app Feeback Email application opens and with the preset values user can edit too with his comments.

    Thank you

    JH

    Thanks guys, but now I found the solution for my problem mentioned above.

    the issue was with event management, even if my app was painted with screen e-mail editor events received to my main application screens, so I put control of all handlers on the current active form.

      public boolean checkActiveScreen()
       {
           net.rim.device.api.ui.Screen scr = net.rim.device.api.ui.UiApplication.getUiApplication().getActiveScreen();
           net.rim.device.api.ui.Field f = scr.getFieldWithFocus();
           if(null != f)
           {
               return false;
           }
             if (scr instanceof net.rim.device.api.ui.container.FullScreen)
            {
                return false;
            }
            else if(scr instanceof net.rim.device.api.ui.container.MainScreen)
            {
                return false;
            }
            else if(scr instanceof net.rim.device.api.ui.container.PopupScreen)
            {
                return false;
            }
    
           return true;
       }
    

    If the function above has solved my case.

  • Problem with the file opened in the application via InvokeRequest

    Hello

    my application opens the file and reads its binary content. I have a small problem to open a file from a navigation or an attachment.

    But first here's how my app works. I have a signal/slot-connection in my applicationUI constructor:

    ApplicationUI::ApplicationUI(bb::cascades::Application *app) : QObject(app), m_invokeManager(new bb::system::InvokeManager(this)) {
    
      bool ok;
    
      // Since the variable is not used in the app, this is added to avoid a
      // compiler warning.
      Q_UNUSED(ok);
    
      ok = QObject::connect(m_invokeManager, SIGNAL(invoked(const bb::system::InvokeRequest&)), this, SLOT(handleInvoke(const bb::system::InvokeRequest&)));
    
    }
    

    So if the user clicks on a file it can open in the following C++ function:

    void ApplicationUI::handleInvoke(const bb::system::InvokeRequest& request) {
    
        QString workingDir = QDir::currentPath();
    
    // Initiate the appropriate target based on the invoke.target-key
        if (request.target() == "com.myapp.card.previewer") {
    
            m_uri = request.uri().toString();
    
            QString FileToOpen = m_uri.replace(QString("file://"), QString(""));
    
            bb::cascades::Page* PageToOpen = ApplicationUI::doLoadPageDetails(FileToOpen);
    
            if (PageToOpen != NULL) {
                initPreviewerUI();
            } else {
                ShowToast("FEHLER! Seite kann nicht geladen werden");
            }
        }
    }
    

    The doLoadPageDetails () - function creates a page and filled with binary content of reading a file. If the file contains errors or is corrupted an exception is thrown.

    And here is my problem. When I opened a file corrupted first the screen becomes darker before opening the app. The I get error messages, exactly as I want. But the screen stays dark. I can't take another navigation element. Also, I can't use the back button. The only solution is to wipe the screen and then use the active frame to close the filebrowser and reopen it.

    That I can't use it with attachments to emails. When I open on and the screen is dark, I can't close the view for emails. So to see the mails again I have to restart the BB decive.

    I'm not fluent in English, but I hope you understand my problem. Is it possible to cancel the invokeRequest when the file is corrupted? Or what can I do here?

    Well, the solution was to use a Toast message but the dialog box. Because that prevents the application and I can't and shows just the message, with the button on this dialog box, I cannot tell the app to close.

  • How to invoke the application of another background application?

    I created two applications.

    first application is listening push msgs and prompt user if no msg happens.
    If the user wants to launch second app, it should be called.

    Is it possible to invoke an application from different applications? can you please tell me how I can do this?

    Thank you

    Gunjan

    ApplicationManager launch allows you to run another application.

  • invoking the application/Gallery bb10 webworks app camera app

    Hello

    in my application that is based on its targeted and webworks for Blackberry10 OS, how to invoke enforcement camera and Gallery.

    can I somehow call it using blackberry.invoke.invoke api pointing to the camera or a gallery, please let me know.

    You can use the invoke of verification on the next page for more details:

    -Camera: https://developer.blackberry.com/html5/documentation/camera.html

    -Gallery: it's a little more complicated, but you can usually call it through the target of the application as follows:

    -action: 'bb.action.OPEN', target: 'sys.pictures.app '.

    If you wish, you can use the card for the camera as defined here:

    - blackberry.invoke.card.invokeCamera

    - https://developer.blackberry.com/html5/apis/blackberry.invoke.card.html

  • Uncaught exception handler application when you install the application via the Desktop Manager

    Hello

    I sometimes have a problem when I install my application on the new phones (mainly with OS6 and OS7) using the Desktop Manager. When installing the application net_rim_bb_trust_application_manager raises an uncaught exception as if had been stalled and its eventqueue was too long. The application itself is installed and works perfectly after a battery pull.

    The question is a bit like the problem described in this thread:

    http://supportforums.BlackBerry.com/T5/Java-development/Autostart-on-installation/m-p/471949#M94686

    The problem is that the solution mentioned here does not solve my problem. My request to have multiple entry points and one of them is an autostart entry point but she must leave the application, unless a parameter in the application autostart enabled (which is not the default). I don't see how this should pose problems for the application manager.

    It is also worth mentioning that this happends only when the application is installed the first time on a new device or a new version of the application that is signed with a different code signing key is installed on the device. The problem will not occur if the application is uninstalled and then installed again. This makes me think that it's something with the permissions to a...?

    Someone at - it had the same problem and solved it?

    Here are the 'new' version of this same article:

    http://supportforums.BlackBerry.com/T5/Java-development/write-safe-initialization-code/Ta-p/444795

    Not sure this is the same problem however, because the user described the problem as being present during the installation, date at which the device is fully functional.

    I agree that it is likely to be a permissions issue.  I saw on some devices that the app will throw a ControlledAcessException on first installation, associated with the PersistentStore.  My suspicion is that there is a kind of race condition between the code that runs the auto-start and the code that is supply completely, for the first time the auto start run on installation, the device is not ready for it.  I thought a few seconds delay automatic start of treatment of coding, but never tested it.

  • Extract the elements of the application via command line

    Hi all

    I can extract the application of the elements of the option extract-> elements of the application.

    Is it possible that I can automate this command line or any other method

    Thank you

    Kind regards

    TVMK

    Yes, LCM is a command line utility that can be fully automated for these elements of snapshot off. Take a look at the document of LCM

    http://docs.Oracle.com/CD/E17236_01/EPM.1112/epm_lifecycle_management.PDF

    As mentioned, the API is another way too but who can take over installation but doable.

    Thanos also gave some options you could look.

    If the information provided to the clarity/confirmation that you are looking for be sure to close the thread for the other members of the community may be able to find the solution at the appropriate time in the future.

  • recognition of the application via the Task Manager

    If my 2 applications are run on the server and by any means that this system locks into place... and now I want to stop only one request by the task manager then how to recognize that, as in the Task Manager I wud see only esssvr.exe for both...

    Hello

    You can do it by the process id in the go Task Manager to display the select columns, check PID.
    One way to match is looking in the essbase.log - you will see entries like
    Start the application [example] with the process id [6988]

    Try to use the microsoft process Explorer, it will identify the process much easier.

    See you soon

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

  • Invoke the workflow via PowerShell vCO fails after 5.5.2 set at level

    Hello

    After upgrading to 5.5.2 vCO I have problems to run PowerShell workflows using REST. I read there are a lot of changes on the REST API vCO on this new version, so I think the upgrade has something to do with the problem.

    $username = ' XXXXXX

    $upassword = "XXXXXX".

    #create headers for appeal REST vCO

    $auth = $username + ':' + $upassword

    $Encoded = [System.Text.Encoding]: UTF8. GetBytes ($auth)

    $EncodedPassword = [System.Convert]: ToBase64String ($Encoded)

    $headers = @{' authorization '=' basic $($EncodedPassword) ' ;}}

    $value = 'nothing. '

    ' $body = ' <-xmlns = execution context " http://www.VMware.com/VCO "> "

    < Parameters >

    < name of the parameter = "arg_in_0" type = "string" >

    < string > "+ $value + < / string >".

    < / parameter >

    < / Parameter >

    < / execution context > '

    $ret = WebRequest call - uri https://vcoserver:8281/api/stream/0049f373-8dc4-4c1b-ae67-15e7bc106fa4/executions / -Headers $headers - body $body - ContentType "application/xml" - Post method

    I get the following error:

    Invoke WebRequest: HTTP 401 - Authentication complete state is required to access this resource

    type of status report

    message full authentication is required to access this resource

    Description this request requires HTTP authentication.

    VMware vFabric tc LIFE 2.9.5.SR1/7.0.50.C.RELEASE

    Thank you

    Juan.

    try changing the url of

    https://vcoserver:8281/api/stream/0049f373-8dc4-4c1b-ae67-15e7bc106fa4/executions /.

    TO

    https://vcoserver:8281/vco/api/stream/0049f373-8dc4-4c1b-ae67-15e7bc106fa4 / executions /.

    vCO has moved in a context of /vco/

    Avoid any new REST API.

    I also notice that in provides script it is missing from the quote for a username

    > $username = ' XXXXXX

  • Invoking the Application Permissions page?

    I've got access_shared + read_device_identifying_information permissions in my application

    I do a check at startup

    if(!blackberry.system.hasPermission("access_shared")) {
      // Output a message to the user
    
      // Close app button
      }
    

    This essentially shows the user a screen explaining the permission denied the app stops and tells them how to turn it on

    At this point, the only option that has the app is closed

    It would be better that I could add another choice for the user who opens the Permission request, ideally with this MyApp, so they can allow the permission required is as they wish

    I kniow there are a LOT of undocumented invoke / map "things you can do" but cannot work on special demand for it

    As required for B4BB this is a recipe that is useful for any developer WW Cookbook

    Looks like you can not go as far as you want to, but you can get close enough:

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

Maybe you are looking for

  • G480 - my MOUSE DOES not!

    Hey, IM KimCai I can't do anything without my mouse. Ive 3 PORTS USB of my laptop (2 left) & 1 right my mouse tottaly works is not on Port left & right. what the with this Lenovo... Photo of my mouse driver ahmed. ------------------------------------

  • change digital controls of type int64

    Hello in my UIR, I changed the data type of a numeric control to int to an int64. Unfortunately, I'm not able to increase the maximum... 2 ^ 63 should give a number in the order of 9 x 10 ^ 18. However, if I enter the CNC 1E18 ' Maximum:' my value is

  • Map chart AMD 14 ZBook and docking station

    I have problems with a ZBook (AMD grahics version) 14 and an ultraslim docking station. HP two monitors are connected to the docking station with display ports. I can say that I have the latest BIOS, drivers and firmwares installed. I am running wind

  • Old access portable hard drive which had the windows user password

    My old laptop's motherboard is fried.  I took the hard drive and put in the case of the speaker.  want to access the files on the old hard drive but it was password protected.  How can I get rid of this password or be able to access the hard disk?  T

  • I want to remove my windows password, says 'mandatory '?

    I want to remove my windows password and I get a prompt saying that account policies require a password! What counts! Is it my computer? I don't want to have to constantly connect!