我知道 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 日志调用。我们所做的NOT查看是否有任何信息表明该信息已发送至 Flurry。
Both setSessionReportsOnPauseEnabled:
and setSessionReportsOnCloseEnabled:
被设置为YES
但当应用程序暂停或关闭时,不会与 Flurry 进行会话数据通信。当我重新启动应用程序时,Flurry 尝试发送会话数据,不幸的是导致:
FlurrySession: Add crashed former session
按照指示,我们在以下位置开始了 Flurry 会话:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions method of your AppDelegate
根据 Flurry 的网站,我们没有追踪任何Events.
我们使用的是Flurry 4.2.2 SDK
该问题似乎是 Flurry SDK 4.2.2 特有的:
4.2.2中有一个新方法:
+ (void)setBackgroundSessionEnabled:(BOOL)setBackgroundSessionEnabled;
它会自动设置为YES
如果有的话UIBackgroundModes
为您的应用程序。我们的应用程序在后台使用 GPS。因此,Flurry 在进入后台时永远不会发布会话数据。
当我强行[Flurry setBackgroundSessionEnabled:NO];
然后,当按下主页按钮并且应用程序转到后台时,它会发送会话数据。
我不知道如果不这样的话这怎么可能行得通。我们不需要使用 Flurry 来更新 GPS 位置,因此现在这对我们来说就可以了。
希望这可以帮助其他人解决这个问题。
更新:2014 年 6 月 17 日:
我在 Flurry 中找到了更多相关内容FAQ http://support.flurry.com/index.php?title=Analytics/FAQ#I.27ve_just_upgraded_to_iOS_SDK_4.2.2_or_4.2.3_and_have_noticed_a_decline_in_my_Event_counts._What_might_be_the_cause_of_this.3F
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)