Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network activity not logged when using async methods of URLSession #478

Closed
honus opened this issue Oct 27, 2023 · 2 comments
Closed

Network activity not logged when using async methods of URLSession #478

honus opened this issue Oct 27, 2023 · 2 comments
Labels

Comments

@honus
Copy link

honus commented Oct 27, 2023

Steps to Reproduce the Problem

Make network requests using the async methods of URLSession. For example:

            let (data, urlResponse) = try await urlSession.data(for: urlRequest)

instead of

            session.dataTask(with: request) { data, response, error in
              //deal with data, response, error
            }
            .resume()

Expected Behavior

network request logs will show up in bug reports and in the Network tab

Actual Behavior

They do not show up in either place.

Instabug integration code

 Instabug.start(
            withToken: Self.isRunningLive() ? Self.productionToken : Self.betaToken,
            invocationEvents: [.screenshot]
 )

We are a full SwiftUI app so this is called from the init method of our App instance

SDK Version

12.1.0

iOS Version

17.1 (build with minimum target of 16.0)

Device Model

iPhone 15 Pro Max (and also iPad simulator running iOS 16.4)

[Optional] Project That Reproduces the Issue

Copy link

stale bot commented Nov 3, 2023

This issue has been automatically marked as stale due to inactivity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Inactive label Nov 3, 2023
Copy link

stale bot commented Nov 10, 2023

This issue has been automatically closed due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant