04-03-2023 02:48 AM
Hi,We're adding in-app purchase and DLC support to our Applab app. In-app purchase is approved in data use checkup. We've uploaded an asset and associated it with an add-on and it's visible in the developer portal correctly associated with the SKU.The asset has purchased fine via the APIs and the other IAP APIs are working - such as ovr_IAP_GetProductsBySKU.However, ovr_AssetFile_GetList() always returns an empty list on completion when using ovr_Message_GetAssetDetailsArray and ovr_AssetDetailsArray_GetSize . It reports success/no errors. Even though the asset has been uploaded.Is this a bug or known issue? Without this we can't get at the asset ID to initiate downloads.Details:Latest Oculus SDKs (v50) using UE 5.1.1.Example code:OculusSubsystem->AddRequestDelegate(ovr_AssetFile_GetList(),FOculusMessageOnCompleteDelegate::CreateLambda([this, Delegate](ovrMessageHandle Message, bool bIsError){FString ErrorStr;TArray< FAliveInTechIAPAsset > Items;if (bIsError){auto Error = ovr_Message_GetError(Message);auto ErrorMessage = ovr_Error_GetMessage(Error);ErrorStr = FString(ErrorMessage);UE_LOG(AliveInTechIAP, Error, TEXT("ovr_AssetFile_GetList Error of %s"), *ErrorStr);}else{auto ArrayHandle = ovr_Message_GetAssetDetailsArray(Message);//always returns 0const size_t ArrayNum = ovr_AssetDetailsArray_GetSize(ArrayHandle);
Solved! Go to Solution.
04-03-2023 04:02 AM
Leaving this here, I've now found the line App Lab apps may only offer IAP. from Add-Ons - Downloadable Content and In-App Purchases: Unity | Oculus Developers so it'll be disabled on the server side.
04-03-2023 04:02 AM
Leaving this here, I've now found the line App Lab apps may only offer IAP. from Add-Ons - Downloadable Content and In-App Purchases: Unity | Oculus Developers so it'll be disabled on the server side.