- 15 Posts
- 0 Reply Likes
Posted 6 years ago
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
When running in Scaled Mode, i.e. without the new LaunchImages, the screen is 320 x 568 points, which is the iPhone 5 native size. This basic view size will then be scaled up on a new iPhone6(+).
However, if I understand the docs correctly, when using lauch images (splash screens) of the new @3x size, the iPhone6 should run without scaling.
Try it (and please, report back if this works as expected). The new splash sizes are:
Retina HD 5.5 (iPhone 6 Plus) 1242 x 2208
Retina HD 4.7 (iPhone 6) 750 x 1334
With all these icons and splash screens, our apps are rapidly growing in size. It would be nice if Storyboards could be used with PGB.
http://oleb.net/blog/2014/08/replacin...
- 15 Posts
- 0 Reply Likes
- 15 Posts
- 0 Reply Likes
UILaunchImageMinimumOSVersion
8.0
UILaunchImageName
Default-667h
UILaunchImageOrientation
Portrait
UILaunchImageSize
{375, 667}
UILaunchImageMinimumOSVersion
8.0
UILaunchImageName
Default-736h
UILaunchImageOrientation
Portrait
UILaunchImageSize
{414, 736}
But I still don't know how to use with my own custom splash images.
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
- Which splashes DO appear, then?
- Are you sure you included the large splash screen images correctly in your config.xml and stored them physically in your collection of files that are uploaded to PGB?
- 15 Posts
- 0 Reply Likes
Using the method that deactivates the scaling doesn't seem to use any splash screen (appears black and then a flash of white before the app loads) as it's looking for the png files in the root directory and I don't believe I can put files in the root directory using Phonegap Build?

Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
- 15 Posts
- 0 Reply Likes
Phonegap Build appears to put everything inside a directory called 'www' so I'm not sure how I can add files to the root directory?

- 132 Posts
- 3 Reply Likes
Alan Neveu, Champion
- 213 Posts
- 11 Reply Likes
- 132 Posts
- 3 Reply Likes
Too bad the guys at phonegap didn't forsee this issue, but they still rock!
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
Probably, yes. %-/
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
I can't check where PGB puts the launch images in the final .ipa right now, but since they are supposed to be at the top-level of the bundle ("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."), I must assume that this is where PGB puts them.
If you have an .ipa file handy, you might check yourself by opening it up (rename to .zip extension and unzip).
- 15 Posts
- 0 Reply Likes
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
I think it works like this: in your config, you define where the source files are. Then, PGB will copy them to the root of the IPA. Unused files will not be included in the IPA when a .pgbomit file is included.
So, you should be able to store your 667-/736-splashes in /content/img/, define your config as shown and write your config-file directive exactly as you did. Yes, as if the files are already in the root. It looks very much like that should work!
- 15 Posts
- 0 Reply Likes
PGB must look for specific sizes, rename and copy the files to root. So maybe the new sizes are ignored and not copied because they are not required for iOS 7 <
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
- 15 Posts
- 0 Reply Likes
Thanks for your help!
John Weidner, Champion
- 435 Posts
- 80 Reply Likes
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
It would be nice if there was a way of configuring that default.
From the PGB docs:
The default splash must be named splash.png and must reside in the root of your application folder.
<gap:splash src="splash.png" />
John Weidner, Champion
- 435 Posts
- 80 Reply Likes
- 4116 Posts
- 192 Reply Likes
To answer this, if this doesn't work currently, it's due to the fact we haven't configured the servers to support it.
This should be coming soon though.
@Adam that's fast seem you are one of the early beds to get the new devices.
Hope it helps.
Update you all when we have more news.
Alan Neveu, Champion
- 213 Posts
- 11 Reply Likes
- 17 Posts
- 1 Reply Like
Alan Neveu, Champion
- 213 Posts
- 11 Reply Likes
Many of us are now using iPhone 6 and 6 Plus devices for development and this is important to us.
- 3 Posts
- 0 Reply Likes
"To disable this up-scaling in your pre-iOS 8 apps and achieve native resolutions, add a Launch Screen File to your project. (A Launch Screen File is just a storyboard file/NIB that will replace the old static launch images.)"
https://www.codefellows.org/blog/3-th...
This is a tutorial how you add constrains:
https://www.youtube.com/watch?v=3to5m...
- 1 Post
- 0 Reply Likes
That solution is great if you are not using PhoneGap Build to compile the app. PhoneGap Build is in desperate need of support iPhone 6 and iPhone 6 Plus splash screens so it doesn't scale up the app.
Cheers,
Phillip Moon
- 3 Posts
- 0 Reply Likes
Regards
- 1 Post
- 0 Reply Likes
ryan, Developer
- 1538 Posts
- 132 Reply Likes
ryan, Developer
- 1538 Posts
- 132 Reply Likes
<gap:splash src="res/screen/ios/Default-667h@2x.png" gap:platform="ios" width="750" height="1334" />
<gap:splash src="res/screen/ios/Default-Portrait-736h@3x.png" gap:platform="ios" width="1242" height="2208" />
<gap:splash src="res/screen/ios/Default-Landscape-736h@3x.png" gap:platform="ios" width="2208" height="1242" />
Here is a demo app including the new icon support. Note that this is only supported on 3.6.3 and above.
- 15 Posts
- 0 Reply Likes
Thank you Ryan!
Related Categories
-
PhoneGap Framework
- 2926 Conversations
- 61 Followers
-
PhoneGap Build
- 15111 Conversations
- 275 Followers








