I'm developing an app which performs some processes in the background (CLLocation for beacon detection and opening URLSession in background), but one of these functions is not working properly in the background (when app is not active) despite working fine when app is in the foreground.I'm developing an app which performs some proce