hide apps programmatically - iphone

I need to hide my app programmatically from the springboard as the "Nike+ iPod" app does. Does anyone know how to achieve this?
PS: It's an in-house app and I'm not planning to submit to the app store.

Ok I achieved it,
In the Info.plist add following lines,
<key>SBAppTags</key>
<array>
<string>hidden</string>
</array>
I tried with JB Device

Related

xcode 5, cant submit app. Unable to authenticate package

I have been working on an update to an app I already have in the app store. All I have done is added some extra view controllers in another storyboard. (I already have a few storyboards in my app and have always added them without any issues). Everything compiles and runs fine (both in the simulator and on a device) but when I go to submit to the app store it fails validation saying that it cannot find "MainStorybaord_iPhone~iphone.storyboardc"... which to me doesn't even make sense since its not even an iPhone app... It's an iPad App... Is there some new requirement that we have to include an iPhone storyboard even for iPad Apps? Any help would be appreciated.. Thanks.
Remove the storyboard from the plist file if you use iPad
<key>UIMainStoryboardFile</key>
<string>Main</string>
or if you use iPhone
<key>UIMainStoryboardFile~ipad</key>
<string>Main</string>

AIR 2.7 iOS App will not quit when hitting iPhone home button

When publishing to iOS device the game plays well, when hitting homebutton it disappears as normal, but next time you open it - it starts to play at the state or level it was when quitting - as it only was paused. It should start up from default startupscreen.
does anyone have the same problem? or solution tho this?
ps we had an 103 error that we solved with this:
http://kb2.adobe.com/cps/909/cpsid_90916.html
When you write an iPhone application, to disable the background mode, you have to set the "UIApplicationExitsOnSuspend" key to YES in the info.plist file.
When you develop mobile Air application the equivalent of the info.plist is located into the "name of the app"-app.xml. I have never tested it but you may have to specify it there like that:
<iPhone>
<InfoAdditions><![CDATA[
<key>UIDeviceFamily</key>
<array>
<string>1</string>
<string>2</string>
</array>
<key>UIApplicationExitsOnSuspend</key>
<true/>
]]></InfoAdditions>
<requestedDisplayResolution>high</requestedDisplayResolution>
</iPhone>
I hope it'll help you.

How to show the play icon in the statusbar of my iPhone / iPad

I made an app which allows an audio file (http://site/file.mp3) to be played in the background.
This all works great. I only want an play icon to be visible like this statusbar
See the 'play' icon in the top right.
I've googled my brains out and can't seem to find anything that explains how to achieve this.
Anyone?
You might need this in your plist:
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
</array>
Other than that - it might be a part of linking your app to the iPod controls; which is answered here: iPhone ios4 - Replacing iPod dock icon whilst playing background audio stream

iPhone - keep radio running in background

I am creating a Radio application , in that I want to keep my radio running even though the application goes to the background.
i.e. streaming must be continued , right now it gets stopped.
Please help me out from this situation
thanks
Add a "Required background modes" entry to your application .plist. This is an array, add an item of "App plays audio".
if you look at the plist source, it'll be:
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
</array>
This might be worth looking into:
iPhone ios4 - Replacing iPod dock icon whilst playing background audio stream

launch the ipad app again

when user presses home button the app should relaunch or it should not allow user to terminate.
what is the possible way to do this? The app should remain on ipad unless user quits the app from inside the application not from home button.
I am considering the termination of app if it crashes or some other reasons that is ok app should quit no doubt, but not normally as user press home button the app should relaunch.
There is no way to do this. It would be a horrible user experience anyways, and as such, not encouraged.
This behavior will with 99% certainty get your app rejected on the App Store.
The normal behavior a user (and Apple) expects is to have the app quit only when the home button is pressed. Any other means of quitting an app, including special buttons, excessive crashes, etc. will flag it for rejection.
You can do this only for iOS 3.2
In applicationWillTerminate do
NSString *UrlString = [NSString stringWithString: #"yourAppSchema:"];
[application openURL:[NSURL URLWithString:[UrlString stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding]]];
First you need to update your Info.plist of your app to support an url schema
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>yourAppSchema</string>
</array>
<key>CFBundleURLName</key>
<string>com.yourCompany.yourAppSchema</string>
</dict>
</array>
The way you do this is to put your iPad in something like This
And also read this thread.