While the application is starting up, iOS shows a launch image that is visible until all the initial setup code is ready (i.e. your first line of AS3 code is being executed).
There are two ways to set up that launch image:
For each iOS resolution you are supporting, you need a PNG with a specific name and size. The following small Ruby script can be used to generate empty images with the correct size and filename. (You need to have the ImageMagick tool convert
installed.)
Note that you typically only need portrait OR landscape (just one of them), depending on your app's orientation. If your app supports both orientations, of course, you should provide both variants.
#!/usr/bin/env ruby launch_sizes = { "Default~iphone" => "320x480", # iPhone 3GS "Default@2x~iphone" => "640x960", # iPhone 4 "Default-568h@2x~iphone" => "640x1136", # iPhone 5, SE "Default-375w-667h@2x~iphone" => "750x1334", # iPhone 6, 7, 8 "Default-414w-736h@3x~iphone" => "1242x2208", # iPhone 6+, 7+, 8+ "Default-812h@3x~iphone" => "1125x2436", # iPhone X, Xs "Default-896h@2x~iphone" => "828x1792", # iPhone Xr "Default-1242h@3x~iphone" => "1242x2688", # iPhone Xs Max "Default-Portrait~ipad" => "768x1024", # iPad "Default-Portrait@2x~ipad" => "1536x2048", # iPad Air "Default-Portrait-834w-1112h@2x~ipad" => "1668x2224", # iPad Pro 10.5" "Default-Portrait-1194h@2x.png" => "1668x2388", # iPad Pro 11" "Default-Portrait-1024w-1366h@2x~ipad" => "2048x2732", # iPad Pro 12" "Default-Landscape-414w-736h@3x~iphone" => "2208x1242", # iPhone 6+ Landscape "Default-Landscape-812h@3x~iphone" => "2436x1125", # iPhone X, Xs Landscape "Default-Landscape-896h@2x~iphone" => "1792x828", # iPhone Xr Landscape "Default-Landscape-1242h@3x~iphone" => "2688x1242", # iPhone Xs Max Landscape "Default-Landscape~ipad" => "1024x768", # iPad Landscape "Default-Landscape@2x~ipad" => "2048x1536", # iPad Air Landscape "Default-Landscape-834w-1112h@2x~ipad" => "2224x1668", # iPad Pro 10.5" Landscape "Default-Landscape-1194h@2x.png" => "2388x1668", # iPad Pro 11" Landscape "Default-Landscape-1024w-1366h@2x~ipad" => "2732x2048" # iPad Pro 12" Landscape } launch_sizes.each do |name, size| `convert -size #{size} xc:#FBF139 #{name}.png` end
More information can be found in this Adobe document. However, it does not cover all the new devices. Another recent list is this one in the Adobe AIR Forum and this one in the Starling forum.
If you find an error in above's list, please edit this wiki document accordingly!
As you can easily see, the sheer number of images you have to provide with the “Default.png” method is becoming ridiculous. Besides, it's hard to test if those file names are really all correct.
So, if you've got access to macOS, it's better to create a storyboard for the launch screen instead. Besides, you need Xcode to bundle your app icons into an “Assets.car” file anyway.
<iPhone> <InfoAdditions><![CDATA[ <!-- ... --> <key>UILaunchStoryboardName</key> <string>LaunchScreen</string> ]]></InfoAdditions> </iPhone>
Now that badge should show up when you launch your app, right until the moment AIR and Starling take over rendering.
Cheers!