简体   繁体   English

iOS应用程序中的Flurry Analytics-如何更改Flurry捕获的版本号

[英]Flurry Analytics from an iOS app - how to change the version number captured by Flurry

  • I have an iOS app that uses the official iOS Flurry SDK. 我有一个使用官方iOS Flurry SDK的iOS应用。
  • I need it to report the 'version' in flurry as a custom string that I define. 我需要它来报告flurry中的“版本”,作为我定义的自定义字符串。
  • Currently, events in the app are reported as a version number, like 1.0.0, 1.0.6 (I'm not sure what this even represents, obviously it's not the iOS version): 目前,应用中的事件以版本号报告,例如1.0.0、1.0.6(我不确定这代表什么,显然不是iOS版本):

在此处输入图片说明

  • I need to report this as 'iphone' or 'ipad' based on which device is being used. 我需要根据所使用的设备将其报告为“ iphone”或“ ipad”。 I can detect whether the device is iphone or ipad, but how do I set the version number that gets sent to Flurry? 我可以检测设备是iPhone还是iPad,但是如何设置发送到Flurry的版本号?

I can do this in the Flurry Android SDK by using FlurryAgent.SetVersionName, however there seems to be no equivalent in iOS. 我可以使用FlurryAgent.SetVersionName在Flurry Android SDK中执行此操作,但是iOS中似乎没有等效的方法。 I've tried using the 'setAppVersion' method but it doesn't work. 我尝试使用'setAppVersion'方法,但是它不起作用。

The iOS function for setting the version is setAppVersion . 用于设置版本的iOS功能是setAppVersion This needs to be called before the Flurry session begins. 需要在Flurry会话开始之前调用此函数。 Here is the documentation. 是文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM