Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone - NSLog does not print when app is in background

One of my VoIP enabled app prints log for every 5 mins interval when app is in background.

But this log did not show at the time of log time.

All log shows at the moment of application coming to foreground by pressing on it.

But why?

Any help please.

like image 848
MaxEcho Avatar asked Feb 03 '26 05:02

MaxEcho


1 Answers

Update for Swift print function:

The print() function does log to the Target Output on Xcode in background. I verified it on iOS 8.1 (on the phone, not simulator) and the logs are printed by background location updates.

like image 56
K.K Avatar answered Feb 05 '26 21:02

K.K



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!