每次将新版本推送到应用商店时,如何防止用户活动激增 [英] how to prevent spike in flurry user activity every time a new version is pushed to app store

查看:15
本文介绍了每次将新版本推送到应用商店时,如何防止用户活动激增的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们目前使用 Flurry 来分析我们的 iOS 应用......每次我们向应用商店提交新版本的应用时,我们都会发现一个反复出现的现象......每当我们这样做时,我们都会看到用户活动激增Flurry 上的图表:

WE currently use flurry for our iOS app analytics.. we've discovered a recurrent phenomenon every time we submit a new version of our app to the app store.. whenever we do that, we see a spike in the user activity graph on Flurry:

我们已经制定了构建配置,因此没有任何开发测试会在 flurry 中进入 prod 应用程序(我们创建了一个用于测试的开发版本).这就是我们在 - (BOOL) 应用程序中的内容:(UIApplication *)application didFinishLaunchingWithOptions:(nullable NSDictionary *)launchOptions 方法:

We have our build configurations made so that no development testing ever make it to the prod app on flurry (we created a dev version for testing).. this is what we have in our - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(nullable NSDictionary *)launchOptions method:

#ifdef RELEASE
    NSLog(@"launching app in RELEASE 
    [Flurry startSession:@"RELEASE-APP-KEY"];
#else
    NSLog(@"launching app in NON-RELEASE mode");
    [Flurry startSession:@"NON-RELEASE-APP-KEY"];
#endif

并且我们的测试确保 在非发布模式下启动应用程序 在他们进行测试时显示在 Xcode 的控制台上..

and our tests ensure that launching app in NON-RELEASE mode shows up on Xcode's console whenever they're doing testing..

进一步...一旦应用程序启动...我们还在 didFinishLaunchingWithOptions 方法中调用我们的服务器来检查应用程序版本(即 /app/ios/version_state).. 在flurry 高峰期查看我们的所有日志.. 我们找不到版本flurry 显示峰值的单个请求..

further.. as soon as the app launches.. we also have inside the didFinishLaunchingWithOptions method a call to our server that checks the app version (ie /app/ios/version_state).. going over all our logs during the spike period in flurry.. we couldn't find a single request with the version flurry is showing the spike in..

知道这可能是关于什么吗?

Any idea what this may be all about?

可能是flurry正在做一些奇怪的缓存行为,或者每当上传到苹果商店时..苹果会运行一些自动测试来检查应用程序是否启动?

could it be that flurry is doing some weird caching behavior or that whenever an is uploaded to apple store.. apple runs some automatic tests that checks if the app launches at all?

推荐答案

我在 Flurry 集成团队工作.我会检查您是否有关于 setBackgroundSessionEnabled 的后台会话.

I work with the Flurry Integration team. I would check if you have background sessions on setBackgroundSessionEnabled.

可能发生的情况是,当您的所有用户自动更新时,后台会话正在启动,导致您在新版本上看到的峰值.

What might be happening is that as all of your users auto-update, a background session is being kicked off, causing the spike you're seeing on the new version.

这篇关于每次将新版本推送到应用商店时,如何防止用户活动激增的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆