Why is the latest AppFlyer plugin not counting install counts?

I’ve got a requirement to use AppsFlyer to count the number of organic and non organic installs for one of my games.

I’ve followed the Corona plugin docs and I’m using the correct app id / dev key id.  The init() method is called successfully and the listener is called as expected.

However when I goto the AppsFlyer dashboard I can’t see any non organic or organic installs.

When I call the method getVersion it’s returning:

SDK: version: 4.8.12 (build 784)

As of writing, the AppsFlyer is now up to version 4.10.2

Is any body seeing these install counts using the latest Corona AppsFlyer plugin?  Or does the plugin need to be updated?

iOS or Android?

Sorry, should have mentioned.  It’s on iOS.

Yeah I’m seeing the same. Android is working but iOS not

The iOS plugin has just been updated to 4.10.3 so try now?

It seems the older SDK was sending data to an invalid end point and hopefully this is corrected in the latest SDK.

That’s some positive news.  I’ve just checked AppsFlyers API version page and the most recent version is 4.10.2, so not sure why when I build my app, the debug logging of the AppsFlyer plugin says: 4.10.3

See here for version history:

https://support.appsflyer.com/hc/en-us/articles/115001256006-AppsFlyer-IOS-SDK-Release-Notes

To test the organic install count, can I simply launch a fresh copy of my app on my device and see the count increase by 1 on AppsFlyers dashboard?

I used a tool to test. I am getting old so my memory might be foggy. But you add your device to a white list and then download an app and click on a button that launches the app as a new install. I think @SGS has done it more recently.

Do you see installs now on iOS?

I added my device to the white list, tried to generate a test install via their test page, followed all the instructions, installed my app (by dragging the generated .app file) onto my XCode device list.  Launched the app and waited 1 hour.  Still no install count.  So I’m not sure if the latest plugin is 100% tracking installs.  Perhaps it needs to be installed from the App Store.

When I set it to debug mode (via the init method) I’m seeing this:

default 14:15:05.103568 +1000 Test App AppsFlyer SDK version 4.10.3 started build (840)

all good, with the latest build…

and then I’m seeing this:

default 14:15:10.851635 +1000 Test App [DEBUG] AppsFlyer: conversion data description:  {     "af\_message" = "organic install";     "af\_status" = Organic;     "is\_first\_launch" = 1; }

so it looks to be ok, but directly after this I’m seeing this:

default 14:15:11.336851 +1000 Test App [1 \<private\> stream, pid: 1870, url: https://t.appsflyer.com/api/v4.9/iosevent?app\_id=G3kWoj7...jTZJ8&buildnumber=4.10.3, tls] cancelled [1.1 4E519605-4272-4F44-B693-688BCF2C7EDA \<private\>.61859\<-\>\<private\>] Connected Path: satisfied (Path is satisfied), interface: pdp\_ip0, ipv4, dns Duration: 3.755s, DNS @0.089s took 0.091s, TCP @0.186s took 0.340s, TLS took 0.812s bytes in/out: 3613/2439, packets in/out: 5/5, rtt: 0.347s, retransmitted packets: 0, out-of-order packets: 0

Is that the end point that could be wrong?  The URL still refers to v4.9 as part of the request (however the params in the URL does say 4.10.3

You might have to scroll all the way to the right to see the full URL… (I’ve edited my app_id for privacy on this post)

Just a thought… Do I have to use the latest Corona daily build?

This is the response I got from appsFlyer about this issue…

We see an install but it was blocked due to “Invalid Install Receipt”.

AppsFlyer performs install validation by utilizing Apple’s install validation service for any iOS install (both organic and non-organic) to prevent attribution of fraudulent activities.
https://support.appsflyer.com/hc/en-us/articles/115003285626-Apple-App-Store-itunes-install-validation

For install via Xcode the service is not relevant (because Install Receipt data won’t exist) unless your app is doing anything with object:

[[NSBundle mainBundle] appStoreReceiptURL];
We see in the logs you have attached that Install Receipt Data is created:

[DEBUG] AppsFlyer: -[AppsFlyerTracker callServerWithEventName:value:withDictionary:isEvent:isIAd:] Found install Receipt Data
As a result, the check against Apple’s install validation service fails.

Can you check this aspect, please?
Some libraries can touch this object sometimes.

@sgs does that mean it will work once in the store?

That is my next test… because via xcode it fails

Are you doing it right now? Before I waste my time?

Oh no, can’t do it until this evening.  So please try now and feedback here.

It didn’t work at all. No counts in the control panel. The test screen just waits for the install and nothing happens. I am going to create another build and log the events and then edit this post to report back. But I don’t see it working at all.

So the test is the same as last time. The organic install work but the non-organic do not work. It registers the click but does not register the install. I tested on an iPAD Air and a iPhone 7.

@sgs my app was approved last night. I have not seen a non-organic install yet. There might be a slight delay in reporting. I’ll let you know the progress if any.

–Edit:

I also see the Admob advertising revenue coming in as expected.

–Edit 2:

Integration to Game Analytics working as expected.

Hey @agramonte, any luck with the non-organic install counts?  Appreciate the info you’ve provided so far.

@sgs pointed out that I was using the “id” portion of the id and it should be all numeric. I uploaded a new version and tried to get a non-organic install test and it still didn’t work. But I’ll submit it to live soon and see how it does there.

I’m seeing installs now but no IAP. Seems test flight installs will not report IAP because they are sandboxed. So can’t test until production build is live.