Click button to launch another Telerik app on same device

3 posts, 0 answers
  1. Ben
    Ben avatar
    4 posts
    Member since:
    Aug 2014

    Posted 10 Nov 2014 Link to this post

    Is it possible to click a button which launches another Telerik app on the same device, instead of closing the current app, then opening the other app from the phone manually? If so, can I pass the newly opening app a parameter such as the username of the user that is opening it?
  2. Ben
    Ben avatar
    4 posts
    Member since:
    Aug 2014

    Posted 10 Nov 2014 Link to this post

    I now have this code in the html file:

    <a class="intent"  
                    // `intent` is the class we're using to wire this up. Use whatever you like.
                    $('a.intent').on('click', function (event) {
                        uriSchemeWithHyperlinkFallback($(this).data('scheme'), $(this).attr('href'));
                        // we don't want the default browser behavior kicking in and screwing everything up.

    And this in my js:

    // tries to execute the uri:scheme
    function uriSchemeWithHyperlinkFallback(uri, href) {
        // set up a timer and start it
        var start = new Date().getTime(),
        // attempt to redirect to the uri:scheme
        // the lovely thing about javascript is that it's single threadded.
        // if this WORKS, it'll stutter for a split second, causing the timer to be off
        document.location = uri;
        // end timer
        end = new Date().getTime();
        elapsed = (end - start);
        // if there's no elapsed time, then the scheme didn't fire, and we head to the url.
        /*if (elapsed < 1) {
            document.location = href;

    When i uncomment the bottom js code it goes to the facebook page. I just need to find out the corrent data-scheme of the VCare Events app (another Telerik app) any idea how I do that?
  3. Zdravko
    Zdravko avatar
    657 posts

    Posted 13 Nov 2014 Link to this post

    Hello Ben,

    Straight to your question. Yes, you can open one app from another by using URL scheme and we have a sample app demonstrating it. The app uses WebIntent plugin for Android part so consider reviewing its help documentation.

    You can also add some parameters which you will have to handle on the launched app side. Following this link you will find another similar plugin which provides additional guidance about parameters handling.
    I hope any of them will help you achieve your goals.


    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

Back to Top