update SKAN API

Summary: To avoid using deprecated API, updated to latest one

Reviewed By: KylinChang

Differential Revision: D49296481

fbshipit-source-id: 8051fe1f5cf6f3972b3127db6ec3d2132a28d052
This commit is contained in:
Xin Wu
2023-09-14 22:36:37 -07:00
committed by Facebook GitHub Bot
parent 765823bd4b
commit 31facd640b

View File

@@ -233,7 +233,11 @@ static char *const serialQueueLabel = "com.facebook.appevents.SKAdNetwork.FBSDKS
if ([self shouldCutoff]) {
return;
}
if (@available(iOS 15.4, *)) {
[self.conversionValueUpdater updatePostbackConversionValue:value completionHandler:nil];
} else {
[self.conversionValueUpdater updateConversionValue:value];
}
self.conversionValue = value + 1;
self.timestamp = [NSDate date];
[self _saveReportData];