Stopping iPhone 6 Plus Scaling/Zooming

7 posts, 0 answers
  1. Pete
    Pete avatar
    18 posts
    Member since:
    Apr 2013

    Posted 21 Nov 2014 Link to this post

    Hello, I just got an iPhone 6 Plus and am testing out my apps, and they are all scaling/zooming.  What do I need to change to turn that off?  I build them with responsive design, so they will scale appropriately, and look good as websites on the phone.  How do I configure the app so that they don't auto-zoom for large iPhones?

    thanks,
    Pete
  2. Konrad
    Konrad avatar
    21 posts
    Member since:
    Sep 2008

    Posted 26 Nov 2014 in reply to Pete Link to this post

    I am also having trouble with this. I tried loading additional splash screens for the new iphones and the splash displays fine but as soon as it hides the app is back into scaled mode. How can we force it to be off?
  3. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 26 Nov 2014 Link to this post

    Hi guys,

    The issue is due to missing app resources files for the new devices. The AppBuilder team is currently working on the matter and we are planning to introduce a fix for it in the upcoming AppBuilder 2.7 release.

    @Konrad, adding only the needed resources won't work as expected, due to the fact Cordova 3.7 is needed in order to relate them inside your project file. The Cordova update is also expected for the next AppBuilder release, so the feature should be completed.

    At this stage, the AppBuilder 2.7 is scheduled for early January, so stay tuned. I hope this helps.

    Regards,
    Kaloyan
    Telerik
     

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

     
  4. domiSchenk
    domiSchenk avatar
    55 posts
    Member since:
    Mar 2013

    Posted 23 Feb 2015 Link to this post

    does this actually work now? my app get still scaled even if i added the required resources(splash screens).

    I'm running cordova 3.7 and have added all SplashScreens.


    Am i doing something wrong?
  5. Kaloyan
    Admin
    Kaloyan avatar
    872 posts

    Posted 26 Feb 2015 Link to this post

    Hi domiSchenk,

    Basically, the fix that disables the auto-scaling on iPhones 6th generation is to add the following code in the info.plist file. This is automatically done for AppBuilder projects. However, I would kindly ask you to check if the info.plist file of your project contains the following inputs:
    <dict>
        <key>UILaunchImageMinimumOSVersion</key>
        <string>8.0</string>
        <key>UILaunchImageName</key>
        <string>Default-667h</string>
        <key>UILaunchImageOrientation</key>
        <string>Portrait</string>
        <key>UILaunchImageSize</key>
        <string>{375, 667}</string>
    </dict>
    <dict>
        <key>UILaunchImageMinimumOSVersion</key>
        <string>8.0</string>
        <key>UILaunchImageName</key>
        <string>Default-667h</string>
        <key>UILaunchImageOrientation</key>
        <string>Landscape</string>
        <key>UILaunchImageSize</key>
        <string>{375, 667}</string>
    </dict>
    <dict>
        <key>UILaunchImageMinimumOSVersion</key>
        <string>8.0</string>
        <key>UILaunchImageName</key>
        <string>Default-736h</string>
        <key>UILaunchImageOrientation</key>
        <string>Portrait</string>
        <key>UILaunchImageSize</key>
        <string>{414, 736}</string>
    </dict>
    <dict>
        <key>UILaunchImageMinimumOSVersion</key>
        <string>8.0</string>
        <key>UILaunchImageName</key>
        <string>Default-Landscape-736h</string>
        <key>UILaunchImageOrientation</key>
        <string>Landscape</string>
        <key>UILaunchImageSize</key>
        <string>{414, 736}</string>
    </dict>

    If not, you may need to add them under the UILaunchImages key.

    Further, as I am unable to differentiate what do you mean by " my app get still scaled", I would need to see some screenshots from the device you are experiencing the issue on. You should be able to attach such with your next reply. I am looking froward to it.

    Regards,
    Kaloyan
    Telerik
     

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

     
  6. domiSchenk
    domiSchenk avatar
    55 posts
    Member since:
    Mar 2013

    Posted 02 Mar 2015 in reply to Kaloyan Link to this post

    ahh now it does work.

    Looks like AppBuilder did not add this to my project.
    Maybe because its an old project. but when adding this code it does work. 

    Thanks for your response.
  7. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 04 Mar 2015 Link to this post

    Hi Dominik,

    We are happy to see the suggestion helped. As for AppBuilder not adding these line for you, I just wanted to note that once you edit the Info.plist file, AppBuilder will no longer change it. Once edited, the file content has to be maintained by you.

    In this case, the Info.plist changes Kaloyan described had to be added in the default version of the file after iPhone 6 and 6 Plus came out. This means that if your project is older and you have edited the Info.plist file before we included the changes, they will be missing from the default structure of the file. However, if you edit the Info.plist file in a new project now, you will see that the image files dictionary is already included for you.

    Regards,
    Tina Stancheva
    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