Skip to content

Commit b2aab5c

Browse files
committed
fix: capture scene name right away
1 parent f85f215 commit b2aab5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/Adjust/iOS/AdjustUnity.mm

+2-2
Original file line numberDiff line numberDiff line change
@@ -740,8 +740,8 @@ void _AdjustUpdateConversionValue(int conversionValue) {
740740
}
741741

742742
void _AdjustUpdateConversionValueWithCallback(int conversionValue, const char* sceneName) {
743+
NSString *stringSceneName = isStringValid(sceneName) == true ? [NSString stringWithUTF8String:sceneName] : nil;
743744
[Adjust updatePostbackConversionValue:conversionValue completionHandler:^(NSError * _Nullable error) {
744-
NSString *stringSceneName = isStringValid(sceneName) == true ? [NSString stringWithUTF8String:sceneName] : nil;
745745
if (stringSceneName == nil) {
746746
return;
747747
}
@@ -752,14 +752,14 @@ void _AdjustUpdateConversionValueWithCallback(int conversionValue, const char* s
752752
}
753753

754754
void _AdjustUpdateConversionValueWithCallbackSkad4(int conversionValue, const char* coarseValue, int lockWindow, const char* sceneName) {
755+
NSString *stringSceneName = isStringValid(sceneName) == true ? [NSString stringWithUTF8String:sceneName] : nil;
755756
if (coarseValue != NULL) {
756757
NSString *stringCoarseValue = [NSString stringWithUTF8String:coarseValue];
757758
BOOL bLockWindow = (BOOL)lockWindow;
758759
[Adjust updatePostbackConversionValue:conversionValue
759760
coarseValue:stringCoarseValue
760761
lockWindow:bLockWindow
761762
completionHandler:^(NSError * _Nullable error) {
762-
NSString *stringSceneName = isStringValid(sceneName) == true ? [NSString stringWithUTF8String:sceneName] : nil;
763763
if (stringSceneName == nil) {
764764
return;
765765
}

0 commit comments

Comments
 (0)