Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-13-2010, 04:30 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2009
Location: india
Posts: 65
sharhelia is on a distinguished road
Default Stop background processing

Hi

i am making an app for iphone OS 4.0 . And while running my app if i press home button my app keeps running in background , but i want my app to close as soon as home button is pressed.
I tried using the following key in the .plist file of project.

"Application does not run in background "

and marking the right tick in front of this key in .plist file , but still my app keeps on playing in background.

Please help me guys..
sharhelia is offline   Reply With Quote
Old 09-13-2010, 04:34 AM   #2 (permalink)
Registered Member
 
Join Date: Oct 2009
Location: Amsterdam, The Netherlands
Posts: 782
TUX2K is on a distinguished road
Default

Try a Clean All Targets and than build, also removing the app might help.
The iphone does not read the info.plist settings on every build.
TUX2K is offline   Reply With Quote
Old 09-13-2010, 05:58 AM   #3 (permalink)
Registered Member
 
Join Date: Sep 2009
Location: india
Posts: 65
sharhelia is on a distinguished road
Default

Quote:
Originally Posted by TUX2K View Post
Try a Clean All Targets and than build, also removing the app might help.
The iphone does not read the info.plist settings on every build.
I tried this but still not working. My app still keeps on working in background.
sharhelia is offline   Reply With Quote
Old 09-13-2010, 07:40 AM   #4 (permalink)
Registered Member
 
Join Date: Oct 2009
Location: Amsterdam, The Netherlands
Posts: 782
TUX2K is on a distinguished road
Default

Did you type in the "Application does not run in background" or did you selected it?
TUX2K is offline   Reply With Quote
Old 09-17-2010, 02:34 AM   #5 (permalink)
Registered Member
 
Join Date: Sep 2009
Location: india
Posts: 65
sharhelia is on a distinguished road
Default Hi

i selected it from the keys in the plist file.
sharhelia is offline   Reply With Quote
Old 09-17-2010, 02:42 AM   #6 (permalink)
Registered Member
 
Join Date: Oct 2009
Location: Amsterdam, The Netherlands
Posts: 782
TUX2K is on a distinguished road
Default

Well that should be correct, I assum that you ticked the box?
TUX2K is offline   Reply With Quote
Old 09-17-2010, 05:15 AM   #7 (permalink)
Registered Member
 
Join Date: Sep 2009
Location: india
Posts: 65
sharhelia is on a distinguished road
Default HI

yes i have ticked the box also ,but still its not working
sharhelia is offline   Reply With Quote
Old 09-20-2010, 05:23 AM   #8 (permalink)
Registered Member
 
Join Date: Sep 2009
Location: india
Posts: 65
sharhelia is on a distinguished road
Thumbs up Solution

hi
i have found the solution for my problem. To stop the application from running in background,tick the checkboxes in front of "Application requires iPhone environment" and "Application does not run in background" keys in info.plist file of your project.

Thanks & happy coding....
sharhelia is offline   Reply With Quote
Reply

Bookmarks

Tags
background, plist, processsing, running, stop

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 336
13 members and 323 guests
Absentia, cgokey, fiftysixty, givensur, heshiming, iGamesDev, linkmx, michaelhansen, mraalex, PixelInteractive, raihan.zbr, Trickphotostudios
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:05 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0