ios – Problem with Flutter AppsFlyer SDK integration: ADClientErrorTrackingRestrictedOrDenied

0
21
ios – Problem with Flutter AppsFlyer SDK integration: ADClientErrorTrackingRestrictedOrDenied


I’m integrating the sdk in my flutter undertaking to work with an android and iOS apps, for android I didn’t discover but any problem on doing it. Nonetheless, for iOS it’s mandatory an extra step for displaying to customers apple’s monitoring authorization dialog for iOS 14+. My problem is that AppsFlyer SDK shouldn’t be studying accurately this authorization standing, the SDK is initialized all the time with this standing as “not decided” or “denied”. So my tracked information shouldn’t be showing in AppsFlyer dashboard due to this problem, so listed here are the proper movement (what ought to occur) and the movement I’m having (what is going on on my ending) detailed:

Blissful movement (what ought to occur):
1 – Open app.
2 – Show apple’s monitoring authorization.
3 – Settle for monitoring.
4 – AppsFlyer SDK initialize with monitoring standing as: 2 – “approved”.
5 – AppsFlyer SDK ship occasions with no errors, and information be mirrored on Dashboard accurately.

Present movement with the difficulty:
1 – Open app.
2 – Show apple’s monitoring authorization.
3 – Settle for monitoring.
4 – AppsFlyer SDK initialize with monitoring standing as: 0 – “notDetermined” or 3 – “denied”.
5 – AppsFlyer SDK ship occasions with errors, and information shouldn’t be mirrored on Dashboard (since for the SDK, person’s apparently didn’t authorize monitoring).

Right here you will discover a private fork of your instance undertaking with the code for displaying apple’s monitoring authorization dialog: https://github.com/Themakew/appsflyer-flutter-plugin. What I did was mainly setup the undertaking to run the iOS app and add all mandatory code to show monitoring’s alert.

What is going on on my finish:

After step 2, I can within the Xcode console log from AppsFlyer SDK that reveals that’s contemplating monitoring standing as “0” and later “3”:

[com.appsflyer.serial] [ATT] Monitoring authorization replace from oldStatus: -255 to newStatus: 0
[com.appsflyer.serial] [ATT] Monitoring authorization replace from oldStatus: 0 to newStatus: 3

And in VSCode flutter logs, ATT standing is:

[log] ATT standing: TrackingStatus.approved

After step 3, logs reveals that when SDK is sending a API request, payload is contemplating as properly ATT standing as denied or not decided (which is an error):

“af_iad_data”:{“error”:”ADClientErrorTrackingRestrictedOrDenied”}

After step 4,logs reveals that SDK is sending the acquisition occasion and in its payload is showing once more the error:

“af_iad_data”:{“error”:”ADClientErrorTrackingRestrictedOrDenied”}

Even when I restart the app over and over, AppsFlyer SDK won’t ever replace the ATT standing on its finish (even with ATT standing as “approved”). So it’s not solely a difficulty on first app run, however after that too, when the app will probably be open numerous instances after with AppsFlyer SDK setting ATT standing wrongly.

Query is: am I doing one thing mistaken on my finish or is it probably a bug on Appsflyer, since it is not recognizing present ATT standing enter accurately?

LEAVE A REPLY

Please enter your comment!
Please enter your name here