cancel
Showing results for 
Search instead for 
Did you mean: 

ovr_AssetFile_GetList() returns an empty list even though assets are uploaded

DoubleDenim
Protege
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 errorsEven 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 0
                    const size_t ArrayNum = ovr_AssetDetailsArray_GetSize(ArrayHandle);

 

 
1 ACCEPTED SOLUTION

Accepted Solutions

DoubleDenim
Protege

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.

View solution in original post

1 REPLY 1

DoubleDenim
Protege

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.