简体   繁体   中英

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.
  • I need it to report the 'version' in flurry as a custom string that I define.
  • 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):

在此处输入图片说明

  • I need to report this as 'iphone' or 'ipad' based on which device is being used. I can detect whether the device is iphone or ipad, but how do I set the version number that gets sent to Flurry?

I can do this in the Flurry Android SDK by using FlurryAgent.SetVersionName, however there seems to be no equivalent in iOS. I've tried using the 'setAppVersion' method but it doesn't work.

The iOS function for setting the version is setAppVersion . This needs to be called before the Flurry session begins. Here is the documentation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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