Forum Discussion
DoubleDenim
3 years agoProtege
ovr_AssetFile_GetList() returns an empty list even though assets are uploaded
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);
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.
1 Reply
Replies have been turned off for this discussion
- DoubleDenimProtege
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.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 3 years ago