NEW: My new book Pro SwiftUI is out now – level up your SwiftUI skills today! >>

Getting logs from users device

Forums > iOS

@BSM  

Hello,

I want to add the option for the user to send the logs of what happend in the app after a crash, or unexpected behaviour.

I have heard about OSLogStore that could do something like that, but that has sadly been removed from ios by apple.

In a few articles I have read about using OSLog( and the new Logger for iOS) which could generate logs if I where to use it like I would use print. but aht wont solve the issue of me wanted the provide the option to collect all logs from x amount of time before(dont know the default time for normal logs), and send to me(the developer).

1      

If a crash happens one the App Store and

(From Apple Connect)

Crashes only includes data from users who have agreed to share their diagnostics and usage information with app developers.

and if in TestFlight it ask the user if they want to send it.

It up to the User!

1      

Hacking with Swift is sponsored by Play

SPONSORED Play is the first native iOS design tool created for designers and engineers. You can install Play for iOS and iPad today and sign up to check out the Beta of our macOS app with SwiftUI code export. We're also hiring engineers!

Click to learn more about Play!

Sponsor Hacking with Swift and reach the world's largest Swift community!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.