How to test BGTaskScheduler in App (with out using debugger)

137 Views Asked by At

I have a BGTaskScheduler scheduled for background process. It is running in debugger mode but not working with out debugger. I have tried to test it on TestFlight as well, did not work.

I have tested it with the help of private function provider by Apple for debugging purpose.

e -l objc -- (void)[[BGTaskScheduler sharedScheduler] _simulateLaunchForTaskWithIdentifier:@"TASK_IDENTIFIER"]

(Click Here for details)

It is working fine in debugger mode when we simulate the background process. Now I want to test it normally using the application flow on TestFlight. But it is not calling BGProcessingTaskRequest. Any solution?

0

There are 0 best solutions below