2 Replies - 1225 Views - Last Post: 02 February 2012 - 08:43 PM

Topic Sponsor:

#1 jlegend  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 12
  • Joined: 28-January 12

iOS App Privileges?

Posted 02 February 2012 - 07:31 PM

Is it possible to, within an app, close a different app on the same iDevice? For example, say my app is trying to do something while in the background (downloading in-app purchase, playing music, etc), and the user opens up a different app that may interfere with the one that is currently running. Would it be possible to kill this app? My thought was using NSNotification, but I was wondering if as developers, do we even have the privilege of doing this?

Thanks

Is This A Good Question/Topic? 0
  • +

Replies To: iOS App Privileges?

#2 xCraftyx  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 11
  • View blog
  • Posts: 256
  • Joined: 13-September 08

Re: iOS App Privileges?

Posted 02 February 2012 - 07:58 PM

Nope. I believe that there is a way to share application bundle identifiers so that applications may launch other applications and possibly even share data, but in general applications can only close themselves. (Which, as it happens, is against Apple's Human Interface Guidelines)

A better approach would be to implement the functions in your application delegate object specific to multitasking so that you can continue to run code even while your application is not technically "active." You can learn more about this here: App States and Multitasking

Hope that helps :)
Was This Post Helpful? 0
  • +
  • -

#3 jlegend  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 12
  • Joined: 28-January 12

Re: iOS App Privileges?

Posted 02 February 2012 - 08:43 PM

Thanks for the reply Crafty! I will definitely check out that documentation.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1