2

I'm using Ionic to develop application on mobile. Now I'm using Facebook SDK analytic for web to tracking events on my application. But I cannot find method to set app version as below:

Image

Does anyone has experience about this?

halfer
  • 19,824
  • 17
  • 99
  • 186
Mathiew
  • 21
  • 3

2 Answers2

0

App Version is currently supported only for Native Apps using Android SDK or iOS SDK. By supported I meant, SDK extracts the version automatically from the manifest accordingly.

At this point let me advice to send the version string as custom param, something like this:

function logEvent(name) {
  FB.AppEvents.logEvent(name, null, {version: currVersion});
}
elize
  • 166
  • 2
  • 1
    Mathiew, in the last release of JS SDK the issue is fixed. You can pass the version as following: FB.AppEvents.setAppVersion('1.2.3'); – elize Jul 13 '17 at 15:56
0

as @elize said in comment and in FB js sdk

you can set app version: FB.AppEvents.setAppVersion('1.2.3.r4')

Daniel Givoni
  • 665
  • 6
  • 12