簡體   English   中英

在Flurry iOS中不發布事件

[英]Not posting events in Flurry ios

我正在創建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

請檢查響應是否正常,或者我必須等待一段時間。

這是對成功的廣告的回應。我正在收到此回應,也正在收到廣告

 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] 

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM