@liazkam
I see, but from my code I don't think that I am using background activity. As I said this is fairly simple request.
let session = URLSession.shared
let url = URL(string: "https://learnappmaking.com/ex/users.json")!
let task = session.dataTask(with: url, completionHandler: { _, response, error in
	 print(error)
	 print(response)
})
task.resume()
And this is working on simulator too but on device not.