Flurry 4.2.2 SDK未在iOS中发送事件会话数据
我知道Flurry的报告有延迟,但是,我们第二天没有看到Flurry报告的结果Flurry 4.2.2 SDK未在iOS中发送事件会话数据,ios,events,sdk,tracking,flurry,Ios,Events,Sdk,Tracking,Flurry,我知道Flurry的报告有延迟,但是,我们第二天没有看到Flurry报告的结果 [Flurry setDebugLogEnabled:YES]; [Flurry setLogLevel:FlurryLogLevelDebug]; [Flurry startSession:_appSettings.flurryAppId]; [Flurry setSessionReportsOnCloseEnabled:YES]; [Flurry setSessionRep
[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
,但当应用程序暂停或关闭时,无法与大量会话数据通信。当我重新启动应用程序时,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;
如果您的应用程序有任何ui背景模式
,它会自动设置为YES
。我们的应用程序在后台使用GPS。因此,Flurry在进入后台时不会发布会话数据
当我强制[Flurry setBackgroundSessionEnabled:NO]
然后当按下Home(主页)按钮且应用程序进入后台时,它会向上发送会话数据
我不知道如果不是这样,这怎么可能奏效。我们不需要使用Flurry来更新GPS位置,这样我们现在就可以使用它了
希望这能帮助其他人解决这个问题
更新日期:2014年6月17日:
我在Flurry的1+中找到了更多信息,我的应用程序使用UIBackgroundModes,它没有使用4.2.2 SDK向Flurry发布任何事件。谢谢