1. #1
    Sencha Premium Member
    Join Date
    Mar 2012
    Location
    Boise, Idaho
    Posts
    84
    Vote Rating
    13
    PhilMerrell will become famous soon enough

      0  

    Default Letter Boxed App on iphone 5

    Letter Boxed App on iphone 5


    My apps are letter boxed when building to iOS/iphone5. Is there a setting I'm not seeing, or a fix in the works?

    Thanks

  2. #2
    Sencha User
    Join Date
    Nov 2011
    Location
    Jena
    Posts
    39
    Vote Rating
    0
    dsac is on a distinguished road

      0  

    Default


    we're facing the same problem (sencha touch 2.0.1.1, webapp only)

    edit: updating to sencha touch 2.1 is no real solution for our project

  3. #3
    Sencha Premium Member
    Join Date
    Mar 2012
    Location
    Boise, Idaho
    Posts
    84
    Vote Rating
    13
    PhilMerrell will become famous soon enough

      0  

    Default Working now...

    Working now...


    I discovered today that if you provide the correct size of splash screen images into the root directory of your app, it will no longer letter boxed. (Note: these sizes appear to be different than webapp splash screen sizes).

    However the splash screen only appears for a very short time, and is replaced by a white screen until the rest of the app loads. Would love to see the splash screen stay up until the app is ready to be displayed.

  4. #4
    Sencha User
    Join Date
    Dec 2012
    Posts
    4
    Vote Rating
    1
    nebev is on a distinguished road

      0  

    Default


    Can you elaborate a bit?
    I added "resources/startup/640x1136.png" (which consisted of a pic 640x1136), and added "'640x1136': 'resources/startup/640x1136.png' " to my app.js under [startupImage]. Also tried the reverse (1136x640).

    I'm still not getting the full screen size on the iPhone 5. Any ideas? Using 2.1.0.

    EDIT:
    Nevermind. I was referring to the Native packager. Got it to work by doing the following:
    * Created a new Image in resources/startup called Default-568h@2x.png
    * Add in the line "rawConfig":"<key>UILaunchImageFile</key><string>resources/startup/Default.png</string>" to the JSON Build file.

  5. #5
    Sencha User
    Join Date
    Sep 2007
    Posts
    134
    Vote Rating
    0
    rballman is on a distinguished road

      0  

    Default


    Quote Originally Posted by nebev View Post
    Nevermind. I was referring to the Native packager. Got it to work by doing the following:
    * Created a new Image in resources/startup called Default-568h@2x.png
    * Add in the line "rawConfig":"<key>UILaunchImageFile</key><string>resources/startup/Default.png</string>" to the JSON Build file.

    Did you mean "Default-568h@2x.png" to the "rawConfig"? There is no Default.png...

  6. #6
    Touch Premium Member
    Join Date
    Feb 2009
    Location
    Firenze, Italia
    Posts
    162
    Vote Rating
    0
    stefx is on a distinguished road

      0  

    Default


    Hi nebev, I've add an image file in resource/startup called Default-568h@2x.png and I've added the line "rawConfig":"<key>UILaunchImageFile</key><string>resources/startup/Default.png</string>" in my packager.json but still not working in simulator.

    What's wrong?
    thanks
    stefano

  7. #7
    Sencha User
    Join Date
    Dec 2012
    Posts
    4
    Vote Rating
    1
    nebev is on a distinguished road

      0  

    Default


    It could be because the packager moves your Sencha App into a directory called "webapp".

    The line in my JSON looks like this:
    PHP Code:
    "rawConfig":"<key>UILaunchImageFile</key><string>webapp/resources/startup/Default.png</string>"
    And my file (for iPhone 5) is
    PHP Code:
    [App_Directory]/resources/startup/Default-568h@2x.png 

  8. #8
    Touch Premium Member
    Join Date
    Feb 2009
    Location
    Firenze, Italia
    Posts
    162
    Vote Rating
    0
    stefx is on a distinguished road

      0  

    Default


    Great!
    Thanks

  9. #9
    Sencha User
    Join Date
    Jul 2012
    Posts
    177
    Vote Rating
    9
    huberte will become famous soon enough

      0  

    Default


    Tried your trick, but still have the error from app store :

    Dear developer,We have discovered one or more issues with your recent delivery for "your app". To process your delivery, the following issues must be corrected:
    iPhone 5 Optimization Requirement - Your binary is not optimized for iPhone 5. As of May 1, all new iPhone apps and app updates submitted must support the 4-inch display on iPhone 5. All apps must include a launch image with the -568h size modifier immediately following the <basename> portion of the launch image's filename. Launch images must be PNG files and located at the top-level of your bundle, or provided within each .lproj folder if you localize your launch images. Learn more about iPhone 5 support and app launch images by reviewing the iOS Human Interface Guidelines and iOS App Programming Guide.
    Though you are not required to fix the following issues, we wanted to make you aware of them:
    Missing Push Notification Entitlement - Your app appears to include API used to register with the Apple Push Notification service, but the app signature's entitlements do not include the "aps-environment" entitlement. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the "aps-environment" entitlement. See "Provisioning and Development" in the Local and Push Notification Programming Guide for more information. If your app does not use the Apple Push Notification service, no action is required. You may remove the API from future submissions to stop this warning. If you use a third-party framework, you may need to contact the developer for information on removing the API.
    Once the required corrections have been made, go to the Version Details page and click "Ready to Upload Binary." Continue through the submission process until the app status is "Waiting for Upload." You can then deliver the corrected binary.
    Regards,
    The App Store team
    For the push notification, I leaved it empty in my json file....

  10. #10
    Sencha User
    Join Date
    Jul 2012
    Posts
    177
    Vote Rating
    9
    huberte will become famous soon enough

      1  

    Default


    Workaround :

    Added Default-568h@2x.png ‚Äč in the root folder