write as webview

3 posts, 0 answers
  1. Saghi
    Saghi avatar
    2 posts
    Member since:
    Feb 2016

    Posted 20 Feb Link to this post

    Hi,
    I want to write an android app in appbuilder VS extension (javascript) with these features:

    - The app works just like a webview
    - At the startup, app will open a url then users will work with the webpages
    - app should detect each page's location (url string)
    - app should call a javascript function of webpages after fully loaded
    - app should check internet connectivity on location changing
    - app should able to download pdf when users click on the links

    Simplly, I want to have a webview and have most controls on it.

    It is very appreciated to advise me with a sample code for understanding how to achieve to these goals.

     

    Thank yo in advance


  2. Saghi
    Saghi avatar
    2 posts
    Member since:
    Feb 2016

    Posted 21 Feb in reply to Saghi Link to this post

     

    I am still waiting for your help.

  3. Anton Dobrev
    Admin
    Anton Dobrev avatar
    539 posts

    Posted 24 Feb Link to this post

    Hello Saghi,

    Thanks for posting to the Telerik Developer Forums.

    As to your questions.

    - The app works just like a webview

    Telerik Platform allows you to build hybrid mobile applications based on the Apache Cordova framework. This kind of applications are already implemented as a browser-based WebView within the native mobile platform.

    Please, see below for more information on your use case.

    - At the startup, app will open a url then users will work with the webpages

    You can use the InAppBrowser sample to open an external URL

    - app should detect each page's location (url string)

    You can use window.location 

    - app should call a javascript function of webpages after fully loaded

    I am afraid that  this requirement is unclear. Can you elaborate? Usually, you app will consist of JavaScript code. You can also check this option of the InAppBrowser plugin.

    - app should check internet connectivity on location changing

    Yes, you can use the events of the InAppBrowser and check in them the network connectivity. You can refer to this sample about how to check the connection.

    - app should able to download pdf when users click on the links


    This is also listed in the InAppBrowser sample.

    I hope that these answer your questions.

    Regards,
    Anton Dobrev
    Telerik
     

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

     
Back to Top