0

我正在创建 Flurry 的自定义事件并希望在我的 Flurry 中显示。但它没有显示任何内容。我收到了一些日志但很难理解。我阅读了一些与此相关的链接,他们告诉他们等待 7-8小时。我下载了 SDK Flurry iPhone SDK vi Phone 5.4.0.zip,我在其中附加了 Flurry.h 和 libFlurry_5.4.0.a。我还将 libFlurry_5.4.0.a 与带有二进制库的链接链接。

这是我的代码:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
     [Flurry setCrashReportingEnabled:YES];
    [Flurry startSession:@""];
    [Flurry setDebugLogEnabled:YES];
}

- (void)viewDidLoad
{
     NSDictionary *articleParams = [NSDictionary dictionaryWithObjectsAndKeys:
                               @"John Q", @"Author",
                               @"Registered", @"User_Status",
                               nil];
    [Flurry logEvent:@"Article_Read" withParameters:articleParams];
}

这是我得到的回应:

Flurry: Starting session on Agent Version [Flurry_iOS_140_5.4.0] 
FlurrySession: Set userID[(null)]
FlurrySession: Add session with startTime[2014-10-10 05:50:42 +0000] to saved sessions

FlurrySession: Add crashed former session
FlurrySession: Event logging enabled[1]
FlurrySession: Session reports on close enabled[1]
FlurrySession: Session reports on pause enabled[0]
FlurrySession: Crash reporting enabled[0]
FlurrySession: Initialized session from scratch with startTime[2014-10-10 06:07:22 +0000]
FlurrySession: Created active session with API[]
FlurrySession: Session reports on close enabled[1]
FlurrySession: Session reports on pause enabled[1]
FlurrySession: Event logging enabled[1]
FlurrySession: Crash reporting enabled[1]
FlurrySession: Sending sessions to server, include current NO
FlurrySession: Initial timestamp[2014-10-10 05:36:41 +0000] from secure source
Flurry: start background task
FlurrySession: Scheduled send 1 session(s).
FlurrySession: dealloc session
FlurrySession: Attempting to record Event eventName[Article_Read] with parameters[{
Author = "John Q";
"User_Status" = Registered;
}]
FlurrySession: Event count for eventName[Article_Read] updated to count[1]
FlurrySession: Recording event eventName[Article_Read] with parameters[{
Author = "John Q";
"User_Status" = Registered;
}] complete

updated network status [1] ======== 
FlurrySession: networkStatusChanged to  reachable
Flurry: HTTP connection delegate received response[<NSHTTPURLResponse: 0x7b36d8a0>
 { 
     URL: http://data.flurry.com/aas.do 
 }
 { 
     status code: 200, headers
     {
         Connection = "keep-alive";
         "Content-Length" = 122;
         "Content-Type" = "application/octet-stream";
         Date = "Fri, 10 Oct 2014 06:04:58 GMT";
         Server = nginx;
         Via = "ICAP/1.0 gsfw (C-ICAP/0.1.7 Gaj Engine service )";
         "X-Cache" = "MISS from localhost";
     } 
}]
FlurrySession: async http response code: 200, id [0FDA7F67-FBB6-472E-B16A-E5EE13161441]
-[FlurryGlobalVariableStorage getPersistentFilePath:]: /Users/rajat/Library/Developer/CoreSimulator/Devices/48F3DD04-8A7B-4009-BC46-4202F77526B6/data/Containers/Data/Application/4CF74646-2DC8-4DAE-8BDC-78F4201DE181/Library/Application Support/FlurryFiles/.flurryPropertiesData509492151_140.archive
-[FlurryGlobalVariableStorage getPersistentFilePath:]: /Users/rajat/Library/Developer/CoreSimulator/Devices/48F3DD04-8A7B-4009-BC46-4202F77526B6/data/Containers/Data/Application/4CF74646-2DC8-4DAE-8BDC-78F4201DE181/Library/Application Support/FlurryFiles/.flurryCkData509492151_140.archive
Flurry: stop background task

请检查响应是否正常或我必须等待一段时间。

4

1 回答 1

0

这是对成功广告的响应。我收到此响应,我也收到广告

Flurry: Starting session on Agent Version [Flurry_iOS_118_4.2.3] 
FlurrySession: Initialized session from scratch with startTime[2014-10-10 06:39:46 +0000]
FlurrySession: Created active session with API[XXXXXXXXXX]
FlurrySession: Session reports on close enabled[1]
FlurrySession: Session reports on pause enabled[1]
FlurrySession: Event logging enabled[1]
FlurrySession: Crash reporting enabled[1]
FlurrySession: Sending sessions to server, include current NO
FlurrySession: Initial timestamp[2014-10-10 06:39:46 +0000] created and saved
Flurry: start background task
FlurrySession: Scheduled send 0 session(s).
FlurrySession: Attempting to record Event eventName[App Started] with parameters[(null)]
FlurrySession: Event count for eventName[App Started] updated to count[1]
FlurrySession: Recording event eventName[App Started] with parameters[(null)] complete
Flurry: HTTP connection delegate received response[<NSHTTPURLResponse: 0xcc8ebd0> { URL: http://data.flurry.com/aas.do } { status code: 200, headers {
Connection = close;
"Content-Length" = 0;
"Content-Type" = "application/octet-stream";
Date = "Fri, 10 Oct 2014 06:23:44 GMT";
Server = nginx;
} }]
 FlurrySession: async http response code: 200, id [997E1D0C-39B4-4F75-9F67-2003F4DDE4CC]
于 2014-10-10T06:55:11.550 回答