Results 1 to 1 of 1

Thread: Using the PhoneGap InAppBrowser plugin

  1. #1
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    UK, USA, Thailand
    Blog Entries

    Using the PhoneGap InAppBrowser plugin

    In mobile Apps (i.e. the facebook App) it is common to click a link and overlay a web page over the App. You will notice a "< Back" button at the top of the screen (or in the case of Android a x). Touching this returns you back to the App.

    In PhoneGap/Cordova this functionality is made available using the InAppBrowser plugin.

    So for example if you want to "View an order" in your App you can generate the order using a server-side .rsp page like this in your JavaScript delegate code.

    var view_url;
    if (Lianja.isPhoneGap())
      view_url = Lianja.App.getFullPathUrl( "apps/" + + "/view_order.rsp" );  
    } else {
      view_url = "view_order.rsp";
    }, "_blank", "location=yes")
    In Lianja 4.0 desktop Apps you can invoke this in a WebView section which will replace the WebView contents with the new content. A "<Back" button will also be displayed on the top left of the WebView, which when clicked will go back to the previous contents.

    In Web Apps a new Tab will be displayed containing the new content.

    When developing PhoneGap Apps you can use the Chrome Developer Tools console for testing.
    Attached Images Attached Images  
    Last edited by barrymavin; 2017-08-28 at 23:07.
    Principal developer of Lianja, Recital and other products

    Follow me on:




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Journey into the Cloud
Join us