Pulse icon indicating copy to clipboard operation
Pulse copied to clipboard

[iOS] Requests are logged in Console UI but stuck on Pending

Open kelvinharron opened this issue 9 months ago • 2 comments

Hey! 👋

Thank you for this fantastic piece of work! We considered building something like this last year but figured we'd do fine with postman, proxy man and the console which doesn't suit our regular users in mob testing. I have an issue I'd like to share that seems to have been a problem before based on issues.

I have integrated Pulse 5.1.3 for our iOS 18 app through Tuist, defining both the UI and core SDK as dynamic frameworks. At runtime on Simulator and device, I can swipe up to show the view and the URLs we hit are recorded, but it is forever stuck on pending. I assumed that my integration is correct (below snippet is using Factory):

var apiClient: Factory<BaseApiClient> {
    self {
        ApiClient(urlSession: self.urlSession.resolve())
    }
    .singleton
}

var urlSession: Factory<URLSession> {
    self {
        #if DEBUG
        return URLSessionProxy(configuration: .default).session
        #else
        return URLSession.shared
        #endif
    }
    .singleton
}

Do you have any guidance on how to solve the issue? I saw this and assumed I assumed that option 1 would take care of the response handling. I can confirm the requests are succeeding too. Let me know what I can do to help document the issue! Thanks.

kelvinharron avatar Mar 17 '25 18:03 kelvinharron

I am facing the same issue, any luck resolving it?

HiroProt avatar Apr 29 '25 05:04 HiroProt

What fixed it for me was refactoring my network code to use async/await instead of Combine. Hope that helps if anyone else runs into this issue.

HiroProt avatar May 01 '25 04:05 HiroProt