viewport width ignored on android

Thread is closed for posting
2 posts, 0 answers
  1. Alexander
    Alexander avatar
    5 posts
    Member since:
    Jan 2014

    Posted 27 Jan 2014 Link to this post

    the content of our app was developed for a device width of 480px.
    In order to support different device types we Need the viewport meta tag feature or something compareable.
    For iOS there is a possibility to set the "EnableViewportScale" to true.
    But how to activate this for Android?

    It seams that the viewport meta tag is completelly ignored by the internal WebView control.
    Research on the Internet confirms this assumption.

    As described in the attached link, there is a possibility using this.appView, but there is no chance to do such things going the AppBuilder way, right?
    So, how to solve the problem?
    Is there any chance, or do we have to develop our own native wrapper?

    Thx in advance


  2. Kaloyan
    Kaloyan avatar
    878 posts

    Posted 30 Jan 2014 Link to this post

    Hi Alexander,

    As you have found out this is a common Cordova issue. Unfortunately, the suggested approach in the link is not applicable for AppBuilder projects.

    I found a thread, where the using of content="target-densitydpi=device-dpi; user-scalable=no" is suggested with some additional setups on onDeviceReady. Here is the link to it.

    I hope it helps.


    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top