I am trying to implement the Adjust SDK in both Android and iOS. In Android it is working fine, but the same code not working on iOS.
Following is my Adjust integration but if I console log status, I am getting status value as 0
I thought this is because of the Emulator issue, then did the build and tried it on real device but still getting the same issue. I am not sure what I am missing here
var adjustEvent = new AdjustEvent("xyzabc");
Adjust.trackEvent(adjustEvent);
Adjust.updateConversionValue(6);
Adjust.getAppTrackingAuthorizationStatus((status) => {
console.log("Authorization status = " + status);
});
2
Answers
Since iOS 14+, you need to request permission to track the user. The status code 0 might indicate a permission issue. Make sure you have implemented the ATT framework correctly.
The first step to debug this would be with better error handling:
NSUserTrackingUsageDescription
to be able to request for permission to track user.Adjust.requestTrackingAuthorizationWithCompletionHandler
like the example below: