You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The Ad Network needs to generate different signature according to the SKAdNetwork version.
// For OS version below 14.0 we should pass '1.0', and for 14.0 and above we need to pass '2.0'.
float osVersion = [[[UIDevice currentDevice] systemVersion] floatValue];
NSURLQueryItem *skAdNetworkVersion = [NSURLQueryItem
queryItemWithName:REQUEST_SKADNETWORK_VERSION_KEY
value:osVersion < 14 ? REQUEST_SKADNETWORK_V1 : REQUEST_SKADNETWORK_V2];
Hey @oded-regev, doing some SKAdnetwork learning right now, so forgive me if I’m missing something obvious, but could you elaborate? I’m not seeing immediately what’s wrong with the info you sent in this issue.
For the record, there’s the update that apps running on iOS 14.5 should use v2.2. And apps on iOS 14.0 thru 14.5 should use v2.1.
Hi, this code may be OK after all, it wasn't clear from Apple docs initially so I raised the issue here.
Please note that Apple refers to the iOS SDK the app was compiled with (i.e. for CNN the Xcode version the CNN developer used to build the app) and in the code you check the device OS version which is different (app built with SDK 14 may run on iOS 12 device).
I'm not sure which is correct, it does feel like the device OS is what really matter.
from SingularPublisherSampleApp/ViewController.m
According to Apple - Choose Parameters Based on Signature Version
The text was updated successfully, but these errors were encountered: