objective c - Ask to send crash report in ios? -


i writing codes project can not use several crash reporting tools due privacy issue. searching manage send email having crash report if crash occurs without involvement of third party reporting tool.

in application delegate declare api like:

void uncaughtexceptionhandler(nsexception * exception) {     // here can:     // 1. set boolean in user defaults app crashed.     // 2. dump data (below) in file in documents directory.      nslog(@"uncaught exception: %@", exception.reason);     nslog(@"crashsymbols: %@", exception.callstacksymbols); } 

then set in "application:didfinishlaunchingwithoptions:":

nssetuncaughtexceptionhandler(&uncaughtexceptionhandler); 

then when application next launches, if boolean (1) set in user defaults, read data (2) , email.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -