2016-07-27 52 views
1

事件,会话和其他功能工作得很好,但是当谈到崩溃报告时,它很糟糕。没有崩溃报告正在产生。我已经使用了以下代码: -崩溃报告没有在Flurry中收到(Swift,iOS)

Flurry.startSession("2XKDMH8M7PQM75B7SKZR") 
     Flurry.setCrashReportingEnabled(true) 
     Flurry.setSessionReportsOnCloseEnabled(true); 
     Flurry.setSessionReportsOnPauseEnabled(true); 
     Flurry.logPageView() 

     let locationManager: CLLocationManager = CLLocationManager(); 
     locationManager.startUpdatingLocation(); 

回答

0

通常,您应该在调用startSession之前放置配置细节。对于崩溃报告,这是必需的。

请更改您的代码:

Flurry.setCrashReportingEnabled(true); 
    Flurry.setSessionReportsOnCloseEnabled(true); 
    Flurry.setSessionReportsOnPauseEnabled(true); 
    Flurry.logPageView(); 

Flurry.startSession("2XKDMH8M7PQM75B7SKZR") 


    let locationManager: CLLocationManager = CLLocationManager(); 
    locationManager.startUpdatingLocation(); 
+0

我也试过不管你曾经说过,但仍不能正常工作 –