Skip to content

Signature paramenters logic for choosing V1\V2 is NOT according to spec #9

@oded-regev

Description

@oded-regev

from SingularPublisherSampleApp/ViewController.m

    // 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];

According to Apple - Choose Parameters Based on Signature Version

Version 2.0 is available for apps that are compiled with the iOS 14 SDK and signed by the App Store. 
Version 1.0 is available starting in iOS 11.3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions