Flurry 4.2.2 SDK不会在iOS中发送事件会话数据

我知道Flurry的报道有一个延迟,但是我们没有看到Flurry报告的结果。

[Flurry setDebugLogEnabled:YES]; [Flurry setLogLevel:FlurryLogLevelDebug]; [Flurry startSession:_appSettings.flurryAppId]; [Flurry setSessionReportsOnCloseEnabled:YES]; [Flurry setSessionReportsOnPauseEnabled:YES]; [Flurry setEventLoggingEnabled:YES]; UIDevice *device = [UIDevice currentDevice]; [Flurry logEvent:@"SESSION_START" withParameters:[NSDictionary dictionaryWithObjectsAndKeys:[device systemVersion], @"OS", nil] timed:YES]; 

我们的日志显示应用程序中发生的各个Flurry日志调用。 我们没有看到任何暗示信息被发送到Flurry的东西。

setSessionReportsOnPauseEnabled:setSessionReportsOnCloseEnabled:都设置为YES ,但当应用程序暂停或closures时,没有与会话数据的Flurry通信。 当我重新启动应用程序时,Flurry尝试发送不幸的结果数据:

 FlurrySession: Add crashed former session 

按照指示,我们开始了Flurry会议:

 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions method of your AppDelegate 

根据Flurry的网站,我们没有跟踪任何事件

我们正在使用Flurry 4.2.2 SDK

似乎是Flurry SDK 4.2.2独有的问题:

在4.2.2中有一个新的方法:

 + (void)setBackgroundSessionEnabled:(BOOL)setBackgroundSessionEnabled; 

如果您的应用程序有任何UIBackgroundModes ,它会自动设置为YES 。 我们的应用程序在后台使用GPS。 因此Flurry在进入后台时不会发布会话数据。

当我强制[Flurry setBackgroundSessionEnabled:NO]; 然后当主页button被按下并且应用程序转到后台时它发送会话数据。

我不知道这是如何工作,否则。 我们没有必要使用Flurry来更新GPS位置,所以现在可以为我们工作。

希望这可以帮助别人解决这个问题。

更新:6/17/2014:

我在Flurry的FAQ中发现了更多