ung
November 15, 2016, 5:14pm
1
Hi,
I’m trying to test the IAP functionalities for our Windows Store build (UWP). When using billing mock the initialization is successful. When trying from the build the initialization process never completes. There’s no callback invoked, not even the failure one. Since the App is not published, I was expecting an error of type InitializationFailureReason.AppNotKnown but that doesn’t happen…
Is that the expected behaviour?
Thank you
bucho2
January 12, 2017, 6:02pm
2
Hi,
did you ever solve this problem?
There is another thread with the same question here:
Is it possible to test the Unity IAP service without publishing an app? I know about the mock billing but the returned receipt is fake. I would require a real receipt to test a 3rd party API (for virtual currency management). I tried disabling...
Reading time: 1 mins 🕑
Likes: 1 ❤
Basically, you need to put your app in the Windows Store to do any testing. And the error handling was significantly changed in version 1.9.3, so you would need to try that version to see what errors are invoked.
bucho2
January 13, 2017, 3:37pm
4
Hi,
thanks…
it’s a windows 10 UW app
I’m using unity 5.5p 0p4 … with unity IAP 1.9.3 …
and the app is published but hidden…
but it’s not working… desktop and mobile…
after initializing (same code as for Android and IOS)… I don’t get any callbacks (not OnInitialized nor OnInitializeFailed)…
here is the console output… maybe that helps…?
VS-output for Release and Debug x86:
Exception thrown: ‘System.ArgumentOutOfRangeException’ in mscorlib.ni.dll
Exception thrown: ‘System.ArgumentOutOfRangeException’ in mscorlib.ni.dll
UnityIAPWin8:Begin PollForProducts() persistent = True, delay = 0, productsOnly = False
and a bit later
UnityIAPWin8:Begin PollForProducts() persistent = True, delay = 10000, productsOnly = False
UnityIAPWin8:Begin PollForProducts() persistent = True, delay = 20000, productsOnly = False
VS-output for Master x86:
ERROR:ChkHr(spStoreCommerce->Initialize(HStringReference(wszCV).Get())) (0x803f6107) [Windows::ApplicationModel::Store::CurrentAppFactory::GetStoreCommerce]
ERROR:ChkHr(GetStoreCommerce(&spStoreCommerce)) (0x803f6107) [Windows::ApplicationModel::Store::CurrentAppFactory::LoadListingInformationAsync]
Exception thrown: ‘System.Exception’ in MyApp.McgInterop.dll
Exception thrown: ‘System.Exception’ in System.Private.CoreLib.dll
‘MyApp.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\mlang.dll’. Skipped loading symbols. Module is native, and native debugging is currently disabled.
info:LoadListingInformationAsync() invoked. [Windows::ApplicationModel::Store::CurrentAppFactory::LoadListingInformationAsync]
ERROR:ChkHr(spStoreCommerce->Initialize(HStringReference(wszCV).Get())) (0x803f6107) [Windows::ApplicationModel::Store::CurrentAppFactory::GetStoreCommerce]
ERROR:ChkHr(GetStoreCommerce(&spStoreCommerce)) (0x803f6107) [Windows::ApplicationModel::Store::CurrentAppFactory::LoadListingInformationAsync]
Exception thrown: ‘System.Exception’ in MyApp.McgInterop.dll
Exception thrown: ‘System.Exception’ in System.Private.CoreLib.dll
The thread 0x6732c has exited with code 0 (0x0).
The thread 0x673d8 has exited with code 0 (0x0).
The thread 0x6725c has exited with code 0 (0x0).
The thread 0x67034 has exited with code 0 (0x0).
The thread 0x6730c has exited with code 0 (0x0).
info:LoadListingInformationAsync() invoked. [Windows::ApplicationModel::Store::CurrentAppFactory::LoadListingInformationAsync]
ERROR:ChkHr(spStoreCommerce->Initialize(HStringReference(wszCV).Get())) (0x803f6107) [Windows::ApplicationModel::Store::CurrentAppFactory::GetStoreCommerce]
ERROR:ChkHr(GetStoreCommerce(&spStoreCommerce)) (0x803f6107) [Windows::ApplicationModel::Store::CurrentAppFactory::LoadListingInformationAsync]
Exception thrown: ‘System.Exception’ in MyApp.McgInterop.dll
Exception thrown: ‘System.Exception’ in System.Private.CoreLib.dll
info:get_AppId() invoked. [Windows::ApplicationModel::Store::CurrentAppFactory::get_AppId]
ERROR:ChkHr(spStoreCommerce->Initialize(HStringReference(wszCV).Get())) (0x803f6107) [Windows::ApplicationModel::Store::CurrentAppFactory::GetStoreCommerce]
ERROR:ChkHr(GetStoreCommerce(&spStoreCommerce)) (0x803f6107) [Windows::ApplicationModel::Store::CurrentAppFactory::get_AppId]
‘MyApp.exe’ (Win32): Loaded ‘C:\Windows\SysWOW64\Windows.Security.Authentication.OnlineId.dll’. Skipped loading symbols. Module is native, and native debugging is currently disabled.
WLID Error: 80070525 info:GetAppReceiptAsync() invoked. [Windows::ApplicationModel::Store::CurrentAppFactory::GetAppReceiptAsync]
ERROR:ChkHr(spStoreCommerce->Initialize(HStringReference(wszCV).Get())) (0x803f6107) [Windows::ApplicationModel::Store::CurrentAppFactory::GetStoreCommerce]
ERROR:ChkHr(GetStoreCommerce(&spStoreCommerce)) (0x803f6107) [Windows::ApplicationModel::Store::CurrentAppFactory::GetAppReceiptAsync]
@bucho2
Were you able to follow the process outlined in the guide in our Manual?
https://docs.unity3d.com/Manual/UnityIAPWindowsConfiguration.html
We have also had some users report a delay (of a couple days) before items are actually available to purchase:
https://forum.unity3d.com/threads/iap-unavailable-product-issue.374734/#post-2779959
This seems to imply an error in a loop or something that is off by one.
Check the numbers in the manifest file with those from the dashboard. We had the same problem. The numbers were different.
For any unfortunate soul struggling to get UWP initialization working and stumbling on this thread… As was suggested previously here, there really is a delay of 24-48 hours after finalizing submission and seeing “In the Store” on the dev center dashboard before IAP initialization works. That was our experience anyhow.
1 Like