In Xcode I have added Background mode capabilities, Because of which I am able to execute code in Background.
How I validate this
I checked this through scheduling NSTimer to print logs. Timer is printing logs perfectly with Application state as UIApplication.State.background, When installed on the device through Xcode.
But when the same app is uploaded to Test flight and installed on the device. Timer is only able to log Active and InActive State but not able to log UIApplication.State.background.
Hence my app is not running in background when installed from Test flight.
Can Anyone help me out with this bug or missing checks. Attaching the image of my capabilites and info plist