Hi All,
Sorry if this has been addressed somewhere else - I could’ve sworn I saw a post months ago that gave this info, but I couldn’t find it by searching the forums or Google, so I’m adding a new topic…
Does anybody know if there is an iOS plist key we can set to “true” in build.settings to allow the native “Music” app (aka iTunes) to keep playing when our app is opened? By default, Corona apps stop any currently playing music, but I’d love to be able to turn that off for an app I’m working on.
Actually, has anybody put together a complete list of iOS plist keys that we can manipulate in our build.settings? I’ll put my boilerplate build.settings template that I work with below, but please chime in with any plist keys that you see missing. Or maybe we can even share our default build.settings files, just to see what others are using.
(If any Corona Labs staffers are reading, a complete list might be a good addition to the API docs, or at the very least a blog post…it’d be great to have a centralized resource.)
Thanks!
Here is my boilerplate build.settings file that I start with on all my new projects:
-- ORIENTATION VALUES: -- portrait, portraitUpsideDown, landscapeLeft, landscapeRight settings = { -- ORIENTATION SETTINGS: orientation = { default = "landscapeLeft", supported = { "landscapeLeft", } }, -- iOS SETTINGS: iphone = { components = {}, plist = { CFBundleDisplayName = "New App", UIAppFonts = {""}, MinimumOSVersion="5.1", UIStatusBarHidden = false, UIPrerenderedIcon = true, UIApplicationExitsOnSuspend = false, CoronaUseIOS6LandscapeOnlyWorkaround=true, CoronaUseIOS6IPadPhotoPickerLandscapeOnlyWorkaround=true, CFBundleIconFiles= { "Icon.png", --iPhone 3G, 57x57 "Icon@2x.png", --iPhone 4, 114x114 "Icon-iPad.png", --iPad, 72x72 "Icon-iPad@2x.png", --iPad 3, 144x144 "Icon-Small.png", --iPhone 3G, 29x29 "Icon-Small@2x.png", --iPhone 4, 58x58 "Icon-Small-50.png", --iPad, 50x50 "Icon-Small-50@2x.png", --iPad 3, 100x100 }, } }, -- ANDROID SETTINGS: android = { versionCode="10", largeHeap=true, usesPermissions = { "android.permission.INTERNET", "android.permission.WRITE\_EXTERNAL\_STORAGE", "android.permission.ACCESS\_COARSE\_LOCATION", "android.permission.ACCESS\_FINE\_LOCATION", "android.permission.READ\_PHONE\_STATE", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.CAMERA" }, usesFeatures = { { name = "android.hardware.camera", required = false }, { name = "android.hardware.location", required = false }, { name = "android.hardware.location.gps", required = false }, }, }, }