Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by vertex · Nov 29, 2010 at 04:42 PM · disablemultitasking

UIApplicationExitsOnSuspend -- how to integrate in Info.plist.

I want to publish to IOS4.2 and disable multitasking. (Unless I disable it, levels start at the point the user left off. This would be good in a lot of games, but not this one.)

From what I've read so far, disabling multitasking is done in Xcode using an info.plist key: UIApplicationExitsOnSuspend YES

I've managed to add another row to plist and write the key with "YES" setting to the right. Doesn't work, though. Am I integrating UIApplicationExitsOnSuspend right?

If not, how do I integrate a new key in info.plist?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by Eric5h5 · Nov 29, 2010 at 05:32 PM

It should be a boolean. Writing "yes" as a string won't work. In the info.plist file viewed as plain text, it should look like this:

<key>UIApplicationExitsOnSuspend</key>
<true/>
Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image vertex · Nov 29, 2010 at 06:52 PM 0
Share

Thank you, but it didn't work in iOS 4.2. I'm building first in Unity, then changing plist via text edit as you wrote. I have no idea what is wrong. Perhaps Unity should have something for this in player settings, but regardless it appears to be not working in XCode. I'm just resetting to level 0 on iOS pause; however, this is not ideal because it briefly displays the last level when restarting.

avatar image Eric5h5 · Nov 29, 2010 at 07:38 PM 0
Share

It works in 4.1; I haven't installed 4.2 yet.

avatar image vertex · Nov 30, 2010 at 03:31 AM 0
Share

This entire multitasking issue is a bit of a challenge I think:

http://discussions.apple.com/thread.jspa?threadID=2469365☆t=60&tstart=0

If anyone has advice for 4.2, I'd appreciate it.

avatar image vertex · Nov 30, 2010 at 01:46 PM 1
Share

Correction: It does work in OS4.2. The confusion on my part was partially caused by the fact that the task bar is more than a task bar. It's a task bar and recently run bar together. If multitasking is disabled, you'll still see your app "running" or "suspended" in the task bar.

This is annoying for developers attempting to set users at ease over battery life issues. "Oh my battery is low because a 3D app has been running in the background." No, your battery is low because of skype and all the other things that have multitasking on.

App history gets into privacy as well.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

deactivate/activate child/separate prefab from script attached to other object 2 Answers

Activate one canvas and deactivating the other. 1 Answer

Why might a pointlight not come back on when re-enabled after being disabled? 1 Answer

Disable Button for a while 2 Answers

disabling a script (MouseLook) 5 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges