Hi,
we are trying to integrate Tizen IAPs with the demo.
We initialize the IAP system, but as soon as we call Initialize, we don’t receive any callback. Neither success, nor fail.
Debug.Log("TizenIabDemo calling UnityPurchasing.Initialize"); //we get this log.
UnityPurchasing.Initialize( this, builder );
//never called:
public void OnInitialized( IStoreController controller, IExtensionProvider extensions )
//never called:
public void OnInitializeFailed( InitializationFailureReason error )
If we look at the logs, we see that the IAP items are all listed though, like:
I/Rosmry ( 3191): RosmryBizLogicItemList.c: RecvGetItemListCb(337) > [Rosmry][RosmryBizItemList] RecvGetItemListCb()
I/Rosmry ( 3191): RosmryUtil.c: RosmryUtil_GetResultCode(141) > [Rosmry][RosmryUtil] errorCode : 0
I/Rosmry ( 3191): RosmryBizLogicItemList.c: __RecvGetItemListCb(360) > [Rosmry][RosmryBizItemList] result : 0
I/Rosmry ( 3191): RosmryUtil.c: RosmryUtil_GetResultCode(141) > [Rosmry][RosmryUtil] errorCode : 0
I/Rosmry ( 3191): RosmryUtil.c: RosmryUtil_GetResultDescription(254) > [Rosmry][RosmryUtil] ResultDescription : 6005|0|Success
I/Rosmry ( 3191): RosmryBizLogicItemList.c: __RecvGetItemListCb(366) > [Rosmry][RosmryBizItemList] ResultDescription : 6005|0|Success
I/Rosmry ( 3191): RosmryBizLogicItemList.c: __RecvGetItemListCb(407) > [Rosmry][RosmryBizItemList] pRespArray->count : 19
I/Rosmry ( 3191): RosmryBizLogicItemList.c: __RecvGetItemListCb(421) > [Rosmry][RosmryBizItemList] pItemId : 000000597229
I/Rosmry ( 3191): RosmryBizLogicItemList.c: __RecvGetItemListCb(444) > [Rosmry][RosmryBizItemList] pItemName : Coins Pack 1
Or:
I/UnityIAP( 1538): IN: unityPurchasingRetrieveProducts([{"id":"100.gold.coins", "storeSpecificId":"000000597229", "type":"Consumable"}, {"id":"500.gold.coins", "storeSpecificId":"000000597230", "type":"Consumable"}, {"id":"sword", "storeSpecificId":"000000597246", "type":"NonConsumable"}, {"id":"subscription", "storeSpecificId":"subscription", "type":"Subscription"}])
I/UnityIAP( 1538): IN: create_search_parameter(0xB91152B0)
I/Unity ( 1538): create_search_parameter:sItemGroupId: 100000086161
I/UnityIAP( 1538): IN: get_item_list_operation_call()
I/Unity ( 1538): >>>>>>> IAP_SERVICE_APP_ID : org.tizen.inapppurchase.iapservice
I/Unity ( 1538): >>>>>>> GROUP ID : 100000086161
I/Unity ( 1538): >>>>>>> MODE : 0
I/Unity ( 1538): >>>>>>> TRANSACTION ID : 119295
I/Unity ( 1538): >>>>>>> START # : 1
I/Unity ( 1538): >>>>>>> END # : 1000
I/UnityIAP( 1538): IN: free_search_parameter(0xB91152B0)
I/UnityIAP( 1538): IN: get_item_list_cb()
I/Unity ( 1538): get_item_list_cb itemId: 000000597229 itemGroupId: (null) itemName: Coins Pack 1 currencyUnit:$ itemPrice: 4.99
I/Unity ( 1538): get_item_list_cb itemId: 000000597230 itemGroupId: (null) itemName: Coins Pack 2 currencyUnit:$ itemPrice: 9.99
I/Unity ( 1538): get_item_list_cb itemId: 000000597231 itemGroupId: (null) itemName: Coins Pack 3 currencyUnit:$ itemPrice: 19.99
// etc ...
I/UnityIAP( 1538): IN: unityPurchasingRetrievePurchases()
I/UnityIAP( 1538): IN: create_search_parameter(0xB9221E18)
I/Unity ( 1538): create_search_parameter:sItemGroupId: 100000086161
I/UnityIAP( 1538): IN: get_purchased_item_list_operation_call()
I/Unity ( 1538): Purchase list result: APP_CONTROL - No error
I/UnityIAP( 1538): IN: free_search_parameter(0xB9221E18)
I attached a complete sample log.
Questions:
- Could it be, that the callbacks aren’t working for Tizen?
- Is this limit to any specific country? We are located in Austria/Europe. But if so: why do we see items on the native side, but don’t get a callback from Unity?
Side notes:
- Unity 5.4.0p4 (64-bit)
- tizen-manifest.xml
<privileges>
<privilege>http://tizen.org/privilege/appmanager.launch</privilege>
<privilege>http://tizen.org/privilege/systemsettings</privilege>
<privilege>http://tizen.org/privilege/internet</privilege>
</privileges>
- Minimum API Level: Tizen 2.3
- Installed Tizen SDK: 2.4r8
- The app is uploaded to the beta store under the same name, bundle id, etc.
- Logging is enabled (see the other log messages).
Thanks upfront for any feedback!
2788744–202109–TizenIabDemo4.txt (226 KB)