iosxcoderuntimedebug-mode

iOS application runs in the background mode by default


Is there any way to make an iOS application starts running in the background under debug mode?

I mean, when you press Cmd+R - the app will be running, but you still need to tap an application icon on the device to open the app.


Solution

  • Yes. In Xcode in the top click your Apps name then click Edit Scheme... Then click Run on the left, then click the Options tab, half way down it will say Background Fetch, check that. Then when you run your app it will start in the background.

    Edit Scheme