Search Unity

Android - Losing connection during purchase causes issues

Discussion in 'Unity IAP' started by gh-madrid, Apr 30, 2019.

  1. gh-madrid

    gh-madrid

    Joined:
    Feb 5, 2018
    Posts:
    4
    This is related to: https://forum.unity.com/threads/unity-iap-android-item-already-own-wrong-message.522742/
    IAP 1.22.0 claims to have "Fixed GooglePlay store consumable products already owned error due to network issue". Unfortunately we are still experiencing this issue.

    When you lose internet connection during the purchase of a consumable, the purchase will fail and attempting the purchase (of the same sku) again will trigger an 'Item already owned' error message from Google. Restarting the game does not consume this purchase.

    If, however, another successful purchase is made, the previous one will be consumed properly on the next restart.

    Steps to reproduce:
    -Trigger a purchase
    -Click 1-tap buy
    -Disable the network
    ===NOTE: Disabling/enabling wifi on the device itself will not trigger the issue! We used a hotspot for wifi on another device and disabled/enabled that.
    -Wait until Google prompts an error.
    -Enable the network.
    -Keep clicking ok on the google prompts until the purchase succeeded.
    -Observe that the purchase failed (and is not fixed by a restart)

    This will cause 2 purchases to show up in your Google Play order history for the SKU you tried to purchase, with 1 being labelled 'Cancelled'.

    Logs:

    2019-04-30 15:26:29.989 7224-7242/com.gamehouse.originalstories I/UnityIAP: isUnityVrEnabled = false
    2019-04-30 15:26:29.994 7224-7242/com.gamehouse.originalstories I/UnityIAP: onPurchaseProduct: diamonds_250
    2019-04-30 15:26:29.994 7224-7242/com.gamehouse.originalstories I/UnityIAP: ITEM TYPE:inapp
    2019-04-30 15:26:30.017 7224-7224/com.gamehouse.originalstories I/Unity: windowFocusChanged: false
    2019-04-30 15:26:30.019 7224-7224/com.gamehouse.originalstories I/Unity: onPause
    2019-04-30 15:26:30.025 7224-7242/com.gamehouse.originalstories I/Unity: purchase({0}): diamonds_250
    2019-04-30 15:26:30.100 7224-7242/com.gamehouse.originalstories D/Unity: Sensor : Accelerometer ( 1) ; 0.010000 / 0.01s ; Accelerometer Sensor / HTC Group Ltd.
    2019-04-30 15:26:30.139 7224-7788/com.gamehouse.originalstories W/Ads: Got on activity created
    2019-04-30 15:26:30.139 7224-7224/com.gamehouse.originalstories I/UnityIAP: Creating purchase activity
    2019-04-30 15:26:30.142 7224-7224/com.gamehouse.originalstories I/UnityIAP: oldSkuMetadata is null
    2019-04-30 15:26:30.144 7224-7428/com.gamehouse.originalstories I/UnityIAP: invoking callback
    2019-04-30 15:26:30.144 7224-7428/com.gamehouse.originalstories I/UnityIAP: Constructing buy intent for diamonds_250, item type: inapp
    2019-04-30 15:26:30.296 7224-7428/com.gamehouse.originalstories I/UnityIAP: Launching buy intent for diamonds_250. Request code: 999
    2019-04-30 15:27:00.527 7224-7224/com.gamehouse.originalstories I/UnityIAP: onActivityResult
    2019-04-30 15:27:00.530 7224-7224/com.gamehouse.originalstories I/UnityIAP: Purchase data: null
    2019-04-30 15:27:00.530 7224-7224/com.gamehouse.originalstories I/UnityIAP: Data signature: null
    2019-04-30 15:27:00.530 7224-7224/com.gamehouse.originalstories I/UnityIAP: Purchase canceled - Response: 6:Error
    2019-04-30 15:27:00.533 7224-7224/com.gamehouse.originalstories I/UnityIAP: onIabPurchaseFinished: false
    2019-04-30 15:27:00.533 7224-7224/com.gamehouse.originalstories I/UnityIAP: 6:Error (response: 6:Error)
    2019-04-30 15:27:00.533 7224-7224/com.gamehouse.originalstories I/UnityIAP: Purchase response code:6
    2019-04-30 15:27:00.661 7224-7224/com.gamehouse.originalstories I/Unity: onResume
    2019-04-30 15:27:00.810 7224-7242/com.gamehouse.originalstories I/Unity: onPurchaseFailedEvent({0}): diamonds_250
    2019-04-30 15:27:00.842 7224-7242/com.gamehouse.originalstories I/Unity: Tracking default event: error_purchase_failed
    2019-04-30 15:27:00.860 7224-7242/com.gamehouse.originalstories E/Unity: Purchase of 'diamonds_250' failed to initiate. Reason=Unknown
     
    tomerswazi likes this.
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Can you post the full logs? It will confirm the IAP version
     
  3. gh-madrid

    gh-madrid

    Joined:
    Feb 5, 2018
    Posts:
    4
    Code (CSharp):
    1. 2019-04-30 15:23:12.876 7224-7242/com.gamehouse.originalstories I/Unity: UnityIAP Version: 1.22.0
    2.     UnityEngine.DebugLogHandler:Internal_Log()
    3.     UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    4.     UnityEngine.Logger:Log(Object)
    5.     UnityEngine.Purchasing.StandardPurchasingModule:Instance(AppStore)
    6.     UnityEngine.Purchasing.StandardPurchasingModule:Instance()
    7.     pie.Control.PurchasesManager:OnGetStoreItemsResult(List`1) (at C:\dev\pie\app\Assets\pie\Control\PurchasesManager.cs:77)
    8.     pie.LiveOps.PurchaseHandler:OnGetStoreItemsSuccess(GetStoreItemsResult) (at C:\dev\pie\app\Assets\pie\LiveOps\PurchaseHandler.cs:86)
    9.     PlayFab.Internal.<>c__DisplayClass22_0`1:<MakeApiCall>b__1() (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabHTTP.cs:230)
    10.     PlayFab.Internal.PlayFabUnityHttp:OnResponse(String, CallRequestContainer) (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabUnityHttp.cs:238)
    11.     PlayFab.Internal.<Post>d__19:MoveNext() (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabUnityHttp.cs:180)
    12.     UnityEngine.SetupCoroutine:Inv
    13. 2019-04-30 15:23:12.957 7224-7242/com.gamehouse.originalstories I/UnityIAP: IAB helper created.
    14. 2019-04-30 15:23:12.966 7224-7242/com.gamehouse.originalstories I/Unity: Adding product 'keypack_5'.
    15.     UnityEngine.DebugLogHandler:Internal_Log()
    16.     UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    17.     UnityEngine.Logger:LogFormat(LogType, String, Object[])
    18.     UnityEngine.Debug:LogFormat(String, Object[])
    19.     pie.Control.PurchasesManager:OnGetStoreItemsResult(List`1) (at C:\dev\pie\app\Assets\pie\Control\PurchasesManager.cs:80)
    20.     pie.LiveOps.PurchaseHandler:OnGetStoreItemsSuccess(GetStoreItemsResult) (at C:\dev\pie\app\Assets\pie\LiveOps\PurchaseHandler.cs:86)
    21.     PlayFab.Internal.<>c__DisplayClass22_0`1:<MakeApiCall>b__1() (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabHTTP.cs:230)
    22.     PlayFab.Internal.PlayFabUnityHttp:OnResponse(String, CallRequestContainer) (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabUnityHttp.cs:238)
    23.     PlayFab.Internal.<Post>d__19:MoveNext() (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabUnityHttp.cs:180)
    24.     UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
    25.    
    26.     (Filename: C Line
    27. 2019-04-30 15:23:12.976 7224-7242/com.gamehouse.originalstories I/Unity: Adding product 'keypack_30'.
    28.     UnityEngine.DebugLogHandler:Internal_Log()
    29.     UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    30.     UnityEngine.Logger:LogFormat(LogType, String, Object[])
    31.     UnityEngine.Debug:LogFormat(String, Object[])
    32.     pie.Control.PurchasesManager:OnGetStoreItemsResult(List`1) (at C:\dev\pie\app\Assets\pie\Control\PurchasesManager.cs:80)
    33.     pie.LiveOps.PurchaseHandler:OnGetStoreItemsSuccess(GetStoreItemsResult) (at C:\dev\pie\app\Assets\pie\LiveOps\PurchaseHandler.cs:86)
    34.     PlayFab.Internal.<>c__DisplayClass22_0`1:<MakeApiCall>b__1() (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabHTTP.cs:230)
    35.     PlayFab.Internal.PlayFabUnityHttp:OnResponse(String, CallRequestContainer) (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabUnityHttp.cs:238)
    36.     PlayFab.Internal.<Post>d__19:MoveNext() (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabUnityHttp.cs:180)
    37.     UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
    38.    
    39.     (Filename: C Lin
    40. 2019-04-30 15:23:12.978 7224-7242/com.gamehouse.originalstories I/Unity: Adding product 'keypack_150'.
    41.     UnityEngine.DebugLogHandler:Internal_Log()
    42.     UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    43.     UnityEngine.Logger:LogFormat(LogType, String, Object[])
    44.     UnityEngine.Debug:LogFormat(String, Object[])
    45.     pie.Control.PurchasesManager:OnGetStoreItemsResult(List`1) (at C:\dev\pie\app\Assets\pie\Control\PurchasesManager.cs:80)
    46.     pie.LiveOps.PurchaseHandler:OnGetStoreItemsSuccess(GetStoreItemsResult) (at C:\dev\pie\app\Assets\pie\LiveOps\PurchaseHandler.cs:86)
    47.     PlayFab.Internal.<>c__DisplayClass22_0`1:<MakeApiCall>b__1() (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabHTTP.cs:230)
    48.     PlayFab.Internal.PlayFabUnityHttp:OnResponse(String, CallRequestContainer) (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabUnityHttp.cs:238)
    49.     PlayFab.Internal.<Post>d__19:MoveNext() (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabUnityHttp.cs:180)
    50.     UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
    51.    
    52.     (Filename: C Li
    53. 2019-04-30 15:23:12.979 7224-7242/com.gamehouse.originalstories I/Unity: Adding product 'diamonds_20'.
    54.     UnityEngine.DebugLogHandler:Internal_Log()
    55.     UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    56.     UnityEngine.Logger:LogFormat(LogType, String, Object[])
    57.     UnityEngine.Debug:LogFormat(String, Object[])
    58.     pie.Control.PurchasesManager:OnGetStoreItemsResult(List`1) (at C:\dev\pie\app\Assets\pie\Control\PurchasesManager.cs:80)
    59.     pie.LiveOps.PurchaseHandler:OnGetStoreItemsSuccess(GetStoreItemsResult) (at C:\dev\pie\app\Assets\pie\LiveOps\PurchaseHandler.cs:86)
    60.     PlayFab.Internal.<>c__DisplayClass22_0`1:<MakeApiCall>b__1() (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabHTTP.cs:230)
    61.     PlayFab.Internal.PlayFabUnityHttp:OnResponse(String, CallRequestContainer) (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabUnityHttp.cs:238)
    62.     PlayFab.Internal.<Post>d__19:MoveNext() (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabUnityHttp.cs:180)
    63.     UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
    64.    
    65.     (Filename: C Li
    66. 2019-04-30 15:23:12.983 7224-7242/com.gamehouse.originalstories I/Unity: Adding product 'diamonds_60'.
    67.     UnityEngine.DebugLogHandler:Internal_Log()
    68.     UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    69.     UnityEngine.Logger:LogFormat(LogType, String, Object[])
    70.     UnityEngine.Debug:LogFormat(String, Object[])
    71.     pie.Control.PurchasesManager:OnGetStoreItemsResult(List`1) (at C:\dev\pie\app\Assets\pie\Control\PurchasesManager.cs:80)
    72.     pie.LiveOps.PurchaseHandler:OnGetStoreItemsSuccess(GetStoreItemsResult) (at C:\dev\pie\app\Assets\pie\LiveOps\PurchaseHandler.cs:86)
    73.     PlayFab.Internal.<>c__DisplayClass22_0`1:<MakeApiCall>b__1() (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabHTTP.cs:230)
    74.     PlayFab.Internal.PlayFabUnityHttp:OnResponse(String, CallRequestContainer) (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabUnityHttp.cs:238)
    75.     PlayFab.Internal.<Post>d__19:MoveNext() (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabUnityHttp.cs:180)
    76.     UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
    77.    
    78.     (Filename: C Li
    79. 2019-04-30 15:23:12.985 7224-7242/com.gamehouse.originalstories I/Unity: Adding product 'diamonds_250'.
    80.     UnityEngine.DebugLogHandler:Internal_Log()
    81.     UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    82.     UnityEngine.Logger:LogFormat(LogType, String, Object[])
    83.     UnityEngine.Debug:LogFormat(String, Object[])
    84.     pie.Control.PurchasesManager:OnGetStoreItemsResult(List`1) (at C:\dev\pie\app\Assets\pie\Control\PurchasesManager.cs:80)
    85.     pie.LiveOps.PurchaseHandler:OnGetStoreItemsSuccess(GetStoreItemsResult) (at C:\dev\pie\app\Assets\pie\LiveOps\PurchaseHandler.cs:86)
    86.     PlayFab.Internal.<>c__DisplayClass22_0`1:<MakeApiCall>b__1() (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabHTTP.cs:230)
    87.     PlayFab.Internal.PlayFabUnityHttp:OnResponse(String, CallRequestContainer) (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabUnityHttp.cs:238)
    88.     PlayFab.Internal.<Post>d__19:MoveNext() (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabUnityHttp.cs:180)
    89.     UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
    90.    
    91.     (Filename: C L
    92. 2019-04-30 15:23:12.987 7224-7242/com.gamehouse.originalstories I/Unity: Adding product 'diamonds_550'.
    93.     UnityEngine.DebugLogHandler:Internal_Log()
    94.     UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    95.     UnityEngine.Logger:LogFormat(LogType, String, Object[])
    96.     UnityEngine.Debug:LogFormat(String, Object[])
    97.     pie.Control.PurchasesManager:OnGetStoreItemsResult(List`1) (at C:\dev\pie\app\Assets\pie\Control\PurchasesManager.cs:80)
    98.     pie.LiveOps.PurchaseHandler:OnGetStoreItemsSuccess(GetStoreItemsResult) (at C:\dev\pie\app\Assets\pie\LiveOps\PurchaseHandler.cs:86)
    99.     PlayFab.Internal.<>c__DisplayClass22_0`1:<MakeApiCall>b__1() (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabHTTP.cs:230)
    100.     PlayFab.Internal.PlayFabUnityHttp:OnResponse(String, CallRequestContainer) (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabUnityHttp.cs:238)
    101.     PlayFab.Internal.<Post>d__19:MoveNext() (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabUnityHttp.cs:180)
    102.     UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
    103.    
    104.     (Filename: C L
    105. 2019-04-30 15:23:12.989 7224-7242/com.gamehouse.originalstories I/Unity: Adding product 'diamonds_1500'.
    106.     UnityEngine.DebugLogHandler:Internal_Log()
    107.     UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    108.     UnityEngine.Logger:LogFormat(LogType, String, Object[])
    109.     UnityEngine.Debug:LogFormat(String, Object[])
    110.     pie.Control.PurchasesManager:OnGetStoreItemsResult(List`1) (at C:\dev\pie\app\Assets\pie\Control\PurchasesManager.cs:80)
    111.     pie.LiveOps.PurchaseHandler:OnGetStoreItemsSuccess(GetStoreItemsResult) (at C:\dev\pie\app\Assets\pie\LiveOps\PurchaseHandler.cs:86)
    112.     PlayFab.Internal.<>c__DisplayClass22_0`1:<MakeApiCall>b__1() (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabHTTP.cs:230)
    113.     PlayFab.Internal.PlayFabUnityHttp:OnResponse(String, CallRequestContainer) (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabUnityHttp.cs:238)
    114.     PlayFab.Internal.<Post>d__19:MoveNext() (at C:\dev\pie\app\Assets\PlayFabSdk\Shared\Internal\PlayFabHttp\PlayFabUnityHttp.cs:180)
    115.     UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
    116.    
    117.     (Filename: C
    118. 2019-04-30 15:23:13.386 7 224-7242/com.gamehouse.originalstories I/Unity: Using configuration builder objects
    119.     UnityEngine.DebugLogHandler:Internal_Log()
    120.     UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    121.     UnityEngine.Logger:Log(Object)
    122.     UnityEngine.Purchasing.StoreCatalogImpl:handleCachedCatalog(Action`1)
    123.     UnityEngine.Purchasing.<>c__DisplayClass10_0:<FetchProducts>b__1(String)
    124.     UnityEngine.Purchasing.<Process>d__4:MoveNext()
    125.     UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)
    126.    
    127.     (Filename: ./Runtime/Export/Debug.bindings.h Line: 45)
    128. 2019-04-30 15:23:13.432 7224-7242/com.gamehouse.originalstories I/UnityIAP: Starting in-app billing setup.
    129. 2019-04-30 15:23:13.435 7224-7224/com.gamehouse.originalstories I/UnityIAP: Billing service connected.
    130. 2019-04-30 15:23:13.435 7224-7428/com.gamehouse.originalstories I/UnityIAP: invoking callback
    131. 2019-04-30 15:23:13.436 7224-7428/com.gamehouse.originalstories I/UnityIAP: Checking for in-app billing 3 support.
    132. 2019-04-30 15:23:13.440 7224-7428/com.gamehouse.originalstories I/UnityIAP: In-app billing version 3 supported for com.gamehouse.originalstories
    133. 2019-04-30 15:23:13.447 7224-7428/com.gamehouse.originalstories I/UnityIAP: Subscriptions AVAILABLE.
    134. 2019-04-30 15:23:13.449 7224-7428/com.gamehouse.originalstories I/UnityIAP: Subscription upgrade and downgrade are AVAILABLE.
    135. 2019-04-30 15:23:13.452 7224-7428/com.gamehouse.originalstories I/UnityIAP: Subscriptions information parse AVAILABLE.
    136. 2019-04-30 15:23:13.465 7224-7428/com.gamehouse.originalstories I/UnityIAP: VR supported.
    137. 2019-04-30 15:23:13.467 7224-7428/com.gamehouse.originalstories I/UnityIAP: onIabSetupFinished: 0
    138. 2019-04-30 15:23:13.468 7224-7428/com.gamehouse.originalstories I/UnityIAP: Requesting 8 products
    139. 2019-04-30 15:23:13.468 7224-7428/com.gamehouse.originalstories I/UnityIAP: QueryInventory: 8
    140. 2019-04-30 15:23:13.468 7224-7428/com.gamehouse.originalstories I/UnityIAP: invoking callback
    141. 2019-04-30 15:23:13.468 7224-7428/com.gamehouse.originalstories I/UnityIAP: Querying owned items, item type: inapp
    142. 2019-04-30 15:23:13.468 7224-7428/com.gamehouse.originalstories I/UnityIAP: Package name: com.gamehouse.originalstories
    143. 2019-04-30 15:23:13.469 7224-7428/com.gamehouse.originalstories I/UnityIAP: Calling getPurchases with continuation token: null
    144. 2019-04-30 15:23:13.470 7224-7428/com.gamehouse.originalstories I/UnityIAP: Owned items response: 0
    145. 2019-04-30 15:23:13.471 7224-7428/com.gamehouse.originalstories I/UnityIAP: Continuation token: null
    146. 2019-04-30 15:23:13.471 7224-7428/com.gamehouse.originalstories I/UnityIAP: Querying SKU details.
    147. 2019-04-30 15:23:13.497 7224-7428/com.gamehouse.originalstories I/UnityIAP: Querying owned items, item type: subs
    148. 2019-04-30 15:23:13.497 7224-7428/com.gamehouse.originalstories I/UnityIAP: Package name: com.gamehouse.originalstories
    149. 2019-04-30 15:23:13.497 7224-7428/com.gamehouse.originalstories I/UnityIAP: Calling getPurchases with continuation token: null
    150. 2019-04-30 15:23:13.683 7224-7428/com.gamehouse.originalstories I/UnityIAP: Owned items response: 0
    151. 2019-04-30 15:23:13.683 7224-7428/com.gamehouse.originalstories I/UnityIAP: Continuation token: null
    152. 2019-04-30 15:23:13.683 7224-7428/com.gamehouse.originalstories I/UnityIAP: Querying SKU details.
    153. 2019-04-30 15:23:13.704 7224-7428/com.gamehouse.originalstories I/UnityIAP: Querying owned items' purchase history, item type: subs
    154. 2019-04-30 15:23:13.704 7224-7428/com.gamehouse.originalstories I/UnityIAP: Package name: com.gamehouse.originalstories
    155. 2019-04-30 15:23:13.704 7224-7428/com.gamehouse.originalstories I/UnityIAP: Calling getPurchaseHistory with continuation token: null
    156. 2019-04-30 15:23:13.892 7224-7428/com.gamehouse.originalstories I/UnityIAP: Purchase history response: 0
    157. 2019-04-30 15:23:13.892 7224-7428/com.gamehouse.originalstories I/UnityIAP: Continuation token: null
    158. 2019-04-30 15:23:13.892 7224-7428/com.gamehouse.originalstories I/UnityIAP: Querying owned items' purchase history, item type: inapp
    159. 2019-04-30 15:23:13.892 7224-7428/com.gamehouse.originalstories I/UnityIAP: Package name: com.gamehouse.originalstories
    160. 2019-04-30 15:23:13.892 7224-7428/com.gamehouse.originalstories I/UnityIAP: Calling getPurchaseHistory with continuation token: null
    161. 2019-04-30 15:23:13.992 7224-7428/com.gamehouse.originalstories I/UnityIAP: Purchase history response: 0
    162. 2019-04-30 15:23:13.992 7224-7428/com.gamehouse.originalstories I/UnityIAP: Continuation token: null
    163. 2019-04-30 15:23:13.993 7224-7428/com.gamehouse.originalstories I/UnityIAP: onQueryInventoryFinished: true
    164. 2019-04-30 15:23:13.993 7224-7428/com.gamehouse.originalstories I/UnityIAP: Inventory refresh successful. (response: 0:OK)
    165. 2019-04-30 15:23:14.027 7224-7428/com.gamehouse.originalstories I/UnityIAP: invoking callback
    166. 2019-04-30 15:23:14.088 7224-7242/com.gamehouse.originalstories I/Unity: Purchases initialized.
    167.     UnityEngine.DebugLogHandler:Internal_Log()
    168.     UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    169.     UnityEngine.Logger:Log(LogType, Object, Object)
    170.     UnityEngine.Debug:Log(Object, Object)
    171.     pie.Control.PurchasesManager:OnInitialized(IStoreController, IExtensionProvider) (at C:\dev\pie\app\Assets\pie\Control\PurchasesManager.cs:91)
    172.     UnityEngine.Purchasing.StoreListenerProxy:OnInitialized(IStoreController)
    173.     UnityEngine.Purchasing.PurchasingManager:CheckForInitialization()
    174.     UnityEngine.Purchasing.PurchasingManager:OnProductsRetrieved(List`1)
    175.     UnityEngine.Purchasing.JSONStore:OnProductsRetrieved(String)
    176.     UnityEngine.Purchasing.<>c__DisplayClass4_0:<OnProductsRetrieved>b__0()
    177.     UnityEngine.Purchasing.Extension.UnityUtil:Update()
    178.    
    179.     (Filename: C Line: 0)
    180. 2019-04-30 15:23:14.108 7224-7242/com.gamehouse.originalstories I/Unity: UnityIAP: Promo interface is available for 8 items
    181.     UnityEngine.DebugLogHandler:Internal_Log()
    182.     UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    183.     UnityEngine.Logger:Log(Object)
    184.     UnityEngine.Purchasing.Promo:ProvideProductsToAds(HashSet`1)
    185.     UnityEngine.Purchasing.Promo:ProvideProductsToAds(JSONStore, IStoreCallback)
    186.     UnityEngine.Purchasing.JSONStore:OnProductsRetrieved(String)
    187.     UnityEngine.Purchasing.<>c__DisplayClass4_0:<OnProductsRetrieved>b__0()
    188.     UnityEngine.Purchasing.Extension.UnityUtil:Update()
    189.    
    190.     (Filename: ./Runtime/Export/Debug.bindings.h Line: 45)
    We're running Unity 2018.3.6f1
     
  4. ravishnair

    ravishnair

    Joined:
    Aug 8, 2016
    Posts:
    20
    Any updates on this? We ran into the same issue as well.
     
  5. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    No updates yet. Does it occur apparently random for you? Or do you have a consistent way to reproduce?
     
  6. ravishnair

    ravishnair

    Joined:
    Aug 8, 2016
    Posts:
    20
    Oh yeah its pretty consistent. The repro steps are below

    • Start a purchase
    • Right after you put in your password/use fingerprint to accept purchase, immediately turn wifi off
    • Wait a few moments and google play should throw an error dialog
    • Turn WiFi on and in game click "Retry" on the "No Network Dialog"(this basically resets the lobby in our game and reinitializes UnityIAP in the process too)
    • Once back in the game, make the same purchase for the SKU that failed
    • An error dialog from Google Play will show saying that you already own the item

      We do get an error message back as "Reason=DuplicateTransaction" though. This was after upgrading to UnityIAP 1.22, before that it gave Unknown.
     
    KonstantinShkulev likes this.
  7. pnowak

    pnowak

    Joined:
    Jan 4, 2021
    Posts:
    2
    Hi, any solution to this? We are experiencing the same thing.
     
  8. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    What version of Unity IAP? Please test with IAP 3.0.2. Are you testing only, or actually tracking user complaints? Typically users would not be explicitly turn off WiFi during a purchase, or suddenly seeing connections errors. You might be chasing a problem that doesn't actually exist in the marketplace. Possible, yes.
     
  9. pnowak

    pnowak

    Joined:
    Jan 4, 2021
    Posts:
    2
    Sorry I checked this post quickly, we are experiencing something similar, but it is completely different problem, not connected to IAP. Forget I asked something :)