- Home /
Unity IAP Codeless not Working on Android Device after Application.Quit()
Hi developers,
I have implemented an IAP Codeless Button to buy a consumable on my android device.
Everything works fine in the first time I run the game. However, after I exit the app via Application.Quit() then all the next times I run the game can't use my IAP button because purchasing system is not initialized, since I am not receiving callbacks from OnInitialized() or OnInitializeFailed().
The only way I can use my IAP Button again is when I force the game to stop and restart the application, since the game stays in the background after quit. However I do not want the users having to do that to make purchases every time they exit and return the game.
I have tried to exit the game by using System.Diagnostics.Process.GetCurrentProcess().Kill() instead of Application.Quit() with no effect on my android device (maybe because I am using il2cpp build).
In the first time I run the game and buy a consumable, logcat shows the following:
05-25 16:22:02.436 4797 4820 D Unity : GL_EXT_protected_textures GL_EXT_sha der_non_constant_global_initializers GL_QCOM_framebuffer_foveated GL_QCOM_shader _framebuffer_fetch_noncoherent GL_EXT_EGL_image_array GL_NV_shader_noperspective interpolation 05-25 16:22:04.883 4797 4820 I Unity : UnityIAP Version: 1.18.0 05-25 16:22:04.883 4797 4820 I Unity : UnityEngine.Purchasing.StandardPurcha singModule:Instance(AppStore) 05-25 16:22:04.883 4797 4820 I Unity : UnityEngine.Purchasing.IAPButtonStore Manager:.ctor() 05-25 16:22:04.883 4797 4820 I Unity : UnityEngine.Purchasing.IAPButtonStore Manager:.cctor() 05-25 16:22:04.883 4797 4820 I Unity : UnityEngine.Purchasing.IAPButton:OnEn able() 05-25 16:22:04.883 4797 4820 I Unity : 05-25 16:22:04.883 4797 4820 I Unity : (Filename: ./Runtime/Export/Debug/Deb ug.bindings.h Line: 48) 05-25 16:22:04.883 4797 4820 I Unity : 05-25 16:22:04.904 4797 4820 I UnityIAP: IAB helper created. 05-25 16:22:04.926 4797 4820 I Unity : File Path: /storage/emulated/0/Androi d/data/com.IronSilver.WeightofSoulsFull/files/Unity/314229ce-3457-4341-8f10-42bf d4aca3cd/IAP/store.json 05-25 16:22:04.926 4797 4820 I Unity : UnityEngine.Purchasing.FileReference: CreateInstance(String, ILogger) 05-25 16:22:04.926 4797 4820 I Unity : UnityEngine.Purchasing.StoreCatalogIm pl:CreateInstance(String, String, ILogger) 05-25 16:22:04.926 4797 4820 I Unity : UnityEngine.Purchasing.JSONStore:Init ialize(IStoreCallback) 05-25 16:22:04.926 4797 4820 I Unity : UnityEngine.Purchasing.PurchasingMana ger:Initialize(IInternalStoreListener, HashSet`1) 05-25 16:22:04.926 4797 4820 I Unity : System.Action`1:Invoke(T) 05-25 16:22:04.926 4797 4820 I Unity : UnityEngine.Purchasing.IAPButtonStore Manager:.ctor() 05-25 16:22:04.926 4797 4820 I Unity : UnityEngine.Purchasing.IAPButtonStore Manager:.cctor() 05-25 16:22:04.926 4797 4820 I Unity : UnityEngine.Purchasing.IAPButton:OnEn able() 05-25 16:22:04.926 4797 4820 I Unity : 05-25 16:22:04.926 4797 4820 I Unity : (Filename: ./Runtime/Export/Debug/Deb ug.bindings.h Line: 48) 05-25 16:22:04.926 4797 4820 I Unity : 05-25 16:22:04.938 4797 4820 I Unity : Fetching optimized store details from https://ecommerce.iap.unity3d.com/catalog?appid=314229ce-3457-4341-8f10-42bfd4a ca3cd&deviceid=967f72046ba73566afd45a64fd74fc90&userid=f86d2e25dd097ba9aabdf8753 2b4e7a2 05-25 16:22:04.938 4797 4820 I Unity : UnityEngine.Purchasing.StoreCatalogIm pl:FetchProducts(Action`1) 05-25 16:22:04.938 4797 4820 I Unity : System.Action`1:Invoke(T) 05-25 16:22:04.938 4797 4820 I Unity : UnityEngine.Purchasing.IAPButtonStore Manager:.ctor() 05-25 16:22:04.938 4797 4820 I Unity : UnityEngine.Purchasing.IAPButtonStore Manager:.cctor() 05-25 16:22:04.938 4797 4820 I Unity : UnityEngine.Purchasing.IAPButton:OnEn able() 05-25 16:22:04.938 4797 4820 I Unity : 05-25 16:22:04.938 4797 4820 I Unity : (Filename: ./Runtime/Export/Debug/Deb ug.bindings.h Line: 48) 05-25 16:22:04.938 4797 4820 I Unity : 05-25 16:22:06.058 4797 4820 I Unity : Failed to fetch IAP catalog due to un expected http status code, attempting to use cache 05-25 16:22:06.058 4797 4820 I Unity : UnityEngine.Purchasing.<>cDisplayCl ass10_0:b1(String) 05-25 16:22:06.058 4797 4820 I Unity : System.Action`1:Invoke(T) 05-25 16:22:06.058 4797 4820 I Unity : UnityEngine.Purchasing.d_4: MoveNext() 05-25 16:22:06.058 4797 4820 I Unity : UnityEngine.SetupCoroutine:InvokeMove Next(IEnumerator, IntPtr) 05-25 16:22:06.058 4797 4820 I Unity : 05-25 16:22:06.058 4797 4820 I Unity : (Filename: ./Runtime/Export/Debug/Deb ug.bindings.h Line: 48) 05-25 16:22:06.058 4797 4820 I Unity : 05-25 16:22:06.063 4797 4820 I UnityIAP: Starting in-app billing setup. 05-25 16:22:06.078 4797 4797 I UnityIAP: Billing service connected. 05-25 16:22:06.080 4797 4937 I UnityIAP: invoking callback 05-25 16:22:06.080 4797 4937 I UnityIAP: Checking for in-app billing 3 support . 05-25 16:22:06.094 4797 4937 I UnityIAP: In-app billing version 3 supported fo r com.IronSilver.WeightofSoulsFull 05-25 16:22:06.099 4797 4937 I UnityIAP: Subscriptions AVAILABLE. 05-25 16:22:06.103 4797 4937 I UnityIAP: VR supported. 05-25 16:22:06.104 4797 4937 I UnityIAP: onIabSetupFinished: 0 05-25 16:22:06.104 4797 4937 I UnityIAP: Requesting 1 products 05-25 16:22:06.104 4797 4937 I UnityIAP: QueryInventory: 1 05-25 16:22:06.104 4797 4937 I UnityIAP: invoking callback 05-25 16:22:06.104 4797 4937 I UnityIAP: Querying owned items, item type: inap p 05-25 16:22:06.104 4797 4937 I UnityIAP: Package name: com.IronSilver.Weightof SoulsFull 05-25 16:22:06.104 4797 4937 I UnityIAP: Calling getPurchases with continuatio n token: null 05-25 16:22:06.110 4797 4937 I UnityIAP: Owned items response: 0 05-25 16:22:06.111 4797 4937 I UnityIAP: Continuation token: null 05-25 16:22:06.111 4797 4937 I UnityIAP: Querying SKU details. 05-25 16:22:06.133 4797 4937 I UnityIAP: Querying owned items, item type: subs
05-25 16:22:06.133 4797 4937 I UnityIAP: Package name: com.IronSilver.Weightof SoulsFull 05-25 16:22:06.133 4797 4937 I UnityIAP: Calling getPurchases with continuatio n token: null 05-25 16:22:06.302 4797 4937 I UnityIAP: Owned items response: 0 05-25 16:22:06.303 4797 4937 I UnityIAP: Continuation token: null 05-25 16:22:06.303 4797 4937 I UnityIAP: Querying SKU details. 05-25 16:22:06.338 4797 4937 I UnityIAP: onQueryInventoryFinished: true 05-25 16:22:06.338 4797 4937 I UnityIAP: Inventory refresh successful. (respon se: 0:OK) 05-25 16:22:06.460 4797 4820 I Unity : UnityIAP: Promo is ready 05-25 16:22:06.460 4797 4820 I Unity : UnityEngine.Purchasing.Promo:ProvideP roductsToAds(HashSet`1) 05-25 16:22:06.460 4797 4820 I Unity : System.Action:Invoke() 05-25 16:22:06.460 4797 4820 I Unity : UnityEngine.Purchasing.Extension.Unit yUtil:Update() 05-25 16:22:06.460 4797 4820 I Unity : 05-25 16:22:06.460 4797 4820 I Unity : (Filename: ./Runtime/Export/Debug/Deb ug.bindings.h Line: 48) 05-25 16:22:06.460 4797 4820 I Unity : 05-25 16:22:12.757 4797 4820 I Unity : IAPButton.PurchaseProduct() with prod uct ID: donationfordevelopersofweightofsouls 05-25 16:22:12.757 4797 4820 I Unity : UnityEngine.Purchasing.IAPButton:Purc haseProduct() 05-25 16:22:12.757 4797 4820 I Unity : UnityEngine.Events.UnityAction:Invoke () 05-25 16:22:12.757 4797 4820 I Unity : UnityEngine.Events.UnityEvent:Invoke( ) 05-25 16:22:12.757 4797 4820 I Unity : UnityEngine.EventSystems.EventFunctio n`1:Invoke(T1, BaseEventData) 05-25 16:22:12.757 4797 4820 I Unity : UnityEngine.EventSystems.ExecuteEvent s:Execute(GameObject, BaseEventData, EventFunction`1) 05-25 16:22:12.757 4797 4820 I Unity : UnityEngine.EventSystems.StandaloneIn putModule:ProcessTouchPress(PointerEventData, Boolean, Boolean) 05-25 16:22:12.757 4797 4820 I Unity : UnityEngine.EventSystems.StandaloneIn putModule:ProcessTouchEvents() 05-25 16:22:12.757 4797 4820 I Unity : UnityEngine.EventSystems.StandaloneIn putModule:Process() 05-25 16:22:12.757 4797 4820 I Unity : 05-25 16:22:12.757 4797 4820 I Unity : (Filename: ./Runtime/Export/Debug/Deb ug.bindings.h Line: 48) 05-25 16:22:12.757 4797 4820 I Unity : 05-25 16:22:12.758 4797 4820 I UnityIAP: onPurchaseProduct: donationfordevelop ersofweightofsouls 05-25 16:22:12.758 4797 4820 I UnityIAP: ITEM TYPE:inapp 05-25 16:22:12.760 1491 6460 I ActivityManager: START u0 {cmp=com.IronSilver.W eightofSoulsFull/com.unity.purchasing.googleplay.PurchaseActivity (has extras)} from uid 10332 05-25 16:22:12.766 1491 6460 E ActivityTrigger: activityStartTrigger: not whit eListedcom.IronSilver.WeightofSoulsFull/com.unity.purchasing.googleplay.Purchase Activity/5 05-25 16:22:12.766 1491 6460 E ActivityTrigger: activityResumeTrigger: not whi teListedcom.IronSilver.WeightofSoulsFull/com.unity.purchasing.googleplay.Purchas eActivity/5 05-25 16:22:12.779 4797 4820 I Unity : purchase({0}): donationfordeveloperso fweightofsouls 05-25 16:22:12.779 4797 4820 I Unity : UnityEngine.Purchasing.IAPButtonStore Manager:InitiatePurchase(String) 05-25 16:22:12.779 4797 4820 I Unity : UnityEngine.Events.UnityAction:Invoke () 05-25 16:22:12.779 4797 4820 I Unity : UnityEngine.Events.UnityEvent:Invoke( ) 05-25 16:22:12.779 4797 4820 I Unity : UnityEngine.EventSystems.EventFunctio n`1:Invoke(T1, BaseEventData) 05-25 16:22:12.779 4797 4820 I Unity : UnityEngine.EventSystems.ExecuteEvent s:Execute(GameObject, BaseEventData, EventFunction`1) 05-25 16:22:12.779 4797 4820 I Unity : UnityEngine.EventSystems.StandaloneIn putModule:ProcessTouchPress(PointerEventData, Boolean, Boolean) 05-25 16:22:12.779 4797 4820 I Unity : UnityEngine.EventSystems.StandaloneIn putModule:ProcessTouchEvents() 05-25 16:22:12.779 4797 4820 I Unity : UnityEngine.EventSystems.StandaloneIn putModule:Process() 05-25 16:22:12.779 4797 4820 I Unity : 05-25 16:22:12.779 4797 4820 I Unity : (Filename: ./Runtime/Export/Debug/Deb ug.bindings.h Line: 48) 05-25 16:22:12.779 4797 4820 I Unity : 05-25 16:22:12.780 4797 4820 I UnityIAP: isUnityVrEnabled = false 05-25 16:22:12.799 1491 1755 E ActivityTrigger: activityResumeTrigger: not whi teListedcom.IronSilver.WeightofSoulsFull/com.unity.purchasing.googleplay.Purchas eActivity/5 05-25 16:22:12.799 1491 1755 D ActivityManager: [MemInfo] Process already exis ts before starting ActivityRecord{7b87f15 u0 com.IronSilver.WeightofSoulsFull/co m.unity.purchasing.googleplay.PurchaseActivity t34000}. System free memory=14260 38784 05-25 16:22:12.805 1491 1755 I InputDispatcher: Window 'Window{7e068b0 u0 com. IronSilver.WeightofSoulsFull/com.unity3d.player.UnityPlayerActivity}' spent 2.3m s processing input events on average(0/2). Monitor spent 2.3ms processing input events on average(0/2). Window input events down spent 3.9ms on average (0/1). W indow input events up spent 0.7ms on average (0/1). Monitor input events down sp ent 3.9ms on average (0/1). Monitor input events up spent 0.7ms on average (0/1) . 05-25 16:22:12.810 1955 1955 D StatusBar: mTopActivityClassName:com.unity.purc hasing.googleplay.PurchaseActivity 05-25 16:22:12.812 4797 4797 I UnityIAP: Creating purchase activity 05-25 16:22:12.812 4797 4937 I UnityIAP: invoking callback 05-25 16:22:12.812 4797 4937 I UnityIAP: Constructing buy intent for donationf ordevelopersofweightofsouls, item type: inapp 05-25 16:22:12.825 4797 4937 I UnityIAP: Launching buy intent for donationford evelopersofweightofsouls. Request code: 999 05-25 16:22:12.861 1491 17355 I InputDispatcher: Window 'Window{b93c6f6 u0 com. IronSilver.WeightofSoulsFull/com.unity.purchasing.googleplay.PurchaseActivity}' spent 0.0ms processing input events on average(0/0). Monitor spent 0.0ms process ing input events on average(0/0). Window input events down spent 0.0ms on averag e (0/0). Window input events up spent 0.0ms on average (0/0). Monitor input even ts down spent 0.0ms on average (0/0). Monitor input events up spent 0.0ms on ave rage (0/0). 05-25 16:23:01.233 1955 1955 D StatusBar: mTopActivityClassName:com.unity.purc hasing.googleplay.PurchaseActivity 05-25 16:23:01.242 1491 5468 E ActivityTrigger: activityResumeTrigger: not whi teListedcom.IronSilver.WeightofSoulsFull/com.unity.purchasing.googleplay.Purchas eActivity/5 05-25 16:23:01.243 1491 5468 E ActivityTrigger: activityResumeTrigger: not whi teListedcom.IronSilver.WeightofSoulsFull/com.unity.purchasing.googleplay.Purchas eActivity/5 05-25 16:23:01.267 1491 5468 D ActivityManager: [MemInfo] Before resuming Acti vityRecord{7b87f15 u0 com.IronSilver.WeightofSoulsFull/com.unity.purchasing.goog leplay.PurchaseActivity t34000}. System free memory=1406476288 05-25 16:23:01.268 4797 4797 I UnityIAP: onActivityResult 05-25 16:23:01.268 4797 4797 I UnityIAP: Successful resultcode from purchase a ctivity. 05-25 16:23:01.268 4797 4797 I UnityIAP: Purchase data: {"orderId":"GPA.3398-9 213-3068-63340","packageName":"com.IronSilver.WeightofSoulsFull","productId":"do nationfordevelopersofweightofsouls","purchaseTime":1558812176770,"purchaseState" :0,"purchaseToken":"kaealhnmpkdijdnmapkclodi.AO-J1OwwkfimXGOwGjRG_XcvM00dpvbva4Y ju4T6rnq9z6F02oR1oMEGQCs7rkur6JFWyb4LMPZ0kcq2sRZNQIplz1fEuVJoGAcISFjOT60a_WEG0t6 sw06Nd6PfToh_i88Lr-yH0UTTuSYL5Hd6U8d3I0avD4neNTcHcD4kt3FB_HBWRUt77Jo"} 05-25 16:23:01.269 4797 4797 I UnityIAP: Data signature: aNpqfQNf455qbxykcQ4QA hhP9jWkauDaAl/qpYZ0tkxyzp4IUitqGf9VC6dX9lCfDPaiPHjSLPvn9SRQMSog54n2kEC9LQcR7t8vS kmvrzE3SmylrFg2nJdjZOM+WJMrWBlblIFWng46er77JhT+AVrla6FZPh9jvbnJ2qeoPQxDt07fd/UQJ vNaX8GysJntJlDRCpOljFvFpqPk3rrJ35bCaKBRWbkMnl81hGJGICJMPhUbM06Ms01Zy+bGrvpfeuriK ABGj9Dw84NlOVTGTAQl9ZlQ3oevX6BBIrjsW5902sTsAMT61T9IVk/w/oHWeido3EydukrChWNE+YVwR Q== 05-25 16:23:01.269 4797 4797 I UnityIAP: Extras: Bundle[{INAPP_PURCHASE_DATA={ "orderId":"GPA.3398-9213-3068-63340","packageName":"com.IronSilver.WeightofSouls Full","productId":"donationfordevelopersofweightofsouls","purchaseTime":15588121 76770,"purchaseState":0,"purchaseToken":"kaealhnmpkdijdnmapkclodi.AO-J1OwwkfimXG OwGjRG_XcvM00dpvbva4Yju4T6rnq9z6F02oR1oMEGQCs7rkur6JFWyb4LMPZ0kcq2sRZNQIplz1fEuV JoGAcISFjOT60a_WEG0t6sw06Nd6PfToh_i88Lr-yH0UTTuSYL5Hd6U8d3I0avD4neNTcHcD4kt3FB_H BWRUt77Jo"}, INAPP_DATA_SIGNATURE=aNpqfQNf455qbxykcQ4QAhhP9jWkauDaAl/qpYZ0tkxyzp 4IUitqGf9VC6dX9lCfDPaiPHjSLPvn9SRQMSog54n2kEC9LQcR7t8vSkmvrzE3SmylrFg2nJdjZOM+WJ MrWBlblIFWng46er77JhT+AVrla6FZPh9jvbnJ2qeoPQxDt07fd/UQJvNaX8GysJntJlDRCpOljFvFpq Pk3rrJ35bCaKBRWbkMnl81hGJGICJMPhUbM06Ms01Zy+bGrvpfeuriKABGj9Dw84NlOVTGTAQl9ZlQ3o evX6BBIrjsW5902sTsAMT61T9IVk/w/oHWeido3EydukrChWNE+YVwRQ==, RESPONSE_CODE=0}] 05-25 16:23:01.269 4797 4797 I UnityIAP: Expected item type: inapp 05-25 16:23:01.270 4797 4797 I UnityIAP: onIabPurchaseFinished: true 05-25 16:23:01.270 4797 4797 I UnityIAP: Success (response: 0:OK) 05-25 16:23:01.270 4797 4797 I UnityIAP: Product purchased successfully! 05-25 16:23:01.270 4797 4797 I UnityIAP: NotifyUnityOfPurchase 05-25 16:23:01.425 2367 2367 D PowerSaverService: current package:com.IronSilv er.WeightofSoulsFull, activity:com.unity3d.player.UnityPlayerActivity, SMode:0, PMode:2 05-25 16:23:01.426 1491 3483 E ActivityTrigger: activityResumeTrigger: not whi teListedcom.IronSilver.WeightofSoulsFull/com.unity3d.player.UnityPlayerActivity/ 5 05-25 16:23:01.426 1491 3483 E ActivityTrigger: activityResumeTrigger: not whi teListedcom.IronSilver.WeightofSoulsFull/com.unity3d.player.UnityPlayerActivity/ 5 05-25 16:23:01.427 1491 3483 I InputDispatcher: Window 'Window{b93c6f6 u0 com. IronSilver.WeightofSoulsFull/com.unity.purchasing.googleplay.PurchaseActivity}' spent 0.0ms processing input events on average(0/0). Monitor spent 0.0ms process ing input events on average(0/0). Window input events down spent 0.0ms on averag e (0/0). Window input events up spent 0.0ms on average (0/0). Monitor input even ts down spent 0.0ms on average (0/0). Monitor input events up spent 0.0ms on ave rage (0/0). 05-25 16:23:01.438 1491 3483 D ActivityManager: [MemInfo] Before resuming Acti vityRecord{8e40c5a u0 com.IronSilver.WeightofSoulsFull/com.unity3d.player.UnityP layerActivity t34000}. System free memory=1405575168 05-25 16:23:01.448 1955 1955 D StatusBar: mTopActivityClassName:com.unity3d.pl ayer.UnityPlayerActivity 05-25 16:23:01.545 2367 2367 D PowerSaverService: current package:com.IronSilv er.WeightofSoulsFull, activity:com.unity3d.player.UnityPlayerActivity, SMode:0, PMode:2 05-25 16:23:01.639 4797 4820 I Unity : IAPButton.ProcessPurchase(PurchaseEve ntArgs UnityEngine.Purchasing.PurchaseEventArgs - donationfordevelopersofweighto fsouls) 05-25 16:23:01.639 4797 4820 I Unity : UnityEngine.Purchasing.IAPButton:Proc essPurchase(PurchaseEventArgs) 05-25 16:23:01.639 4797 4820 I Unity : UnityEngine.Purchasing.IAPButtonStore Manager:ProcessPurchase(PurchaseEventArgs) 05-25 16:23:01.639 4797 4820 I Unity : UnityEngine.Purchasing.PurchasingMana ger:ProcessPurchaseIfNew(Product) 05-25 16:23:01.639 4797 4820 I Unity : UnityEngine.Purchasing.JSONStore:OnPu rchaseSucceeded(String, String, String) 05-25 16:23:01.639 4797 4820 I Unity : System.Action:Invoke() 05-25 16:23:01.639 4797 4820 I Unity : UnityEngine.Purchasing.Extension.Unit yUtil:Update() 05-25 16:23:01.639 4797 4820 I Unity : 05-25 16:23:01.639 4797 4820 I Unity : (Filename: ./Runtime/Export/Debug/Deb ug.bindings.h Line: 48) 05-25 16:23:01.639 4797 4820 I Unity : 05-25 16:23:01.642 4797 4820 I UnityIAP: Finish transaction:GPA.3398-9213-3068 -63340 05-25 16:23:01.643 4797 4820 I UnityIAP: Consuming donationfordevelopersofweig htofsouls 05-25 16:23:01.643 4797 4937 I UnityIAP: invoking callback 05-25 16:23:01.643 4797 4937 I UnityIAP: Consuming sku: donationfordeveloperso fweightofsouls, token: kaealhnmpkdijdnmapkclodi.AO-J1OwwkfimXGOwGjRG_XcvM00dpvbv a4Yju4T6rnq9z6F02oR1oMEGQCs7rkur6JFWyb4LMPZ0kcq2sRZNQIplz1fEuVJoGAcISFjOT60a_WEG 0t6sw06Nd6PfToh_i88Lr-yH0UTTuSYL5Hd6U8d3I0avD4neNTcHcD4kt3FB_HBWRUt77Jo 05-25 16:23:03.666 4797 4937 I UnityIAP: Successfully consumed sku: donationfo rdevelopersofweightofsouls 05-25 16:23:03.666 4797 4937 I UnityIAP: onConsumeFinished:true 05-25 16:23:03.666 4797 4937 I UnityIAP: Successful consume of sku donationfor developersofweightofsouls (response: 0:OK) 05-25 16:23:03.666 4797 4937 I UnityIAP: 0
In the secind time I run the game, logcat show this:
05-25 16:24:22.197 1491 1585 W ActivityManager: Activity pause timeout for Act ivityRecord{8e40c5a u0 com.IronSilver.WeightofSoulsFull/com.unity3d.player.Unity PlayerActivity t34000 f} 05-25 16:24:22.428 1491 1714 I WindowManager: Failed to capture screenshot of Token{c78de8b ActivityRecord{8e40c5a u0 com.IronSilver.WeightofSoulsFull/com.uni ty3d.player.UnityPlayerActivity t34000 f}} appWin=Window{7e068b0 u0 com.IronSilv er.WeightofSoulsFull/com.unity3d.player.UnityPlayerActivity} drawState=4 05-25 16:24:22.689 4797 4797 E ActivityThread: Activity com.unity3d.player.Uni tyPlayerActivity has leaked IntentReceiver com.unity.purchasing.googleplay.Googl ePlayPurchasing$3@c9d6112 that was originally registered here. Are you missing a call to unregisterReceiver()? 05-25 16:24:22.689 4797 4797 E ActivityThread: android.app.IntentReceiverLeake d: Activity com.unity3d.player.UnityPlayerActivity has leaked IntentReceiver com .unity.purchasing.googleplay.GooglePlayPurchasing$3@c9d6112 that was originally registered here. Are you missing a call to unregisterReceiver()? 05-25 16:24:22.689 4797 4797 E ActivityThread: at com.unity.purchasing. googleplay.GooglePlayPurchasing.registerPurchasesUpdatedReceiver(GooglePlayPurch asing.java:268) 05-25 16:24:22.689 4797 4797 E ActivityThread: at com.unity.purchasing. googleplay.GooglePlayPurchasing.(GooglePlayPurchasing.java:111) 05-25 16:24:22.689 4797 4797 E ActivityThread: at com.unity.purchasing. googleplay.GooglePlayPurchasing.instance(GooglePlayPurchasing.java:75) 05-25 16:24:22.689 4797 4797 E ActivityThread: at com.unity3d.player.Un ityPlayer.nativeRender(Native Method) 05-25 16:24:22.689 4797 4797 E ActivityThread: at com.unity3d.player.Un ityPlayer.c(Unknown Source:0) 05-25 16:24:22.689 4797 4797 E ActivityThread: at com.unity3d.player.Un ityPlayer$e$1.handleMessage(Unknown Source:88) 05-25 16:24:22.689 4797 4797 E ActivityThread: at com.unity3d.player.Un ityPlayer$e.run(Unknown Source:20) 05-25 16:24:22.704 4797 4797 E ActivityThread: Activity com.unity3d.player.Uni tyPlayerActivity has leaked ServiceConnection com.unity.purchasing.googleplay.Bi llingServiceManager$1@b857a64 that was originally bound here 05-25 16:24:22.704 4797 4797 E ActivityThread: android.app.ServiceConnectionLe aked: Activity com.unity3d.player.UnityPlayerActivity has leaked ServiceConnecti on com.unity.purchasing.googleplay.BillingServiceManager$1@b857a64 that was orig inally bound here 05-25 16:24:22.704 4797 4797 E ActivityThread: at com.unity.purchasing. googleplay.BillingServiceManager.bindToGooglePlayService(BillingServiceManager.j ava:104) 05-25 16:24:22.704 4797 4797 E ActivityThread: at com.unity.purchasing. googleplay.BillingServiceManager$2.run(BillingServiceManager.java:136) 05-25 16:24:59.762 1491 5468 I ActivityManager: START u0 {act=android.intent.a ction.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.IronSil ver.WeightofSoulsFull/com.unity3d.player.UnityPlayerActivity bnds=[540,114][798, 397] (has extras)} from uid 10013 05-25 16:24:59.768 1491 5468 E ActivityTrigger: activityStartTrigger: not whit eListedcom.IronSilver.WeightofSoulsFull/com.unity3d.player.UnityPlayerActivity/5
05-25 16:24:59.768 1491 5468 E ActivityTrigger: activityResumeTrigger: not whi teListedcom.IronSilver.WeightofSoulsFull/com.unity3d.player.UnityPlayerActivity/ 5 05-25 16:24:59.771 1955 1955 D StatusBar: mTopActivityClassName:com.unity3d.pl ayer.UnityPlayerActivity 05-25 16:24:59.773 1491 3483 E ActivityTrigger: activityResumeTrigger: not whi teListedcom.IronSilver.WeightofSoulsFull/com.unity3d.player.UnityPlayerActivity/ 5 05-25 16:24:59.773 1491 3483 D ActivityManager: [MemInfo] Process already exis ts before starting ActivityRecord{45750e1 u0 com.IronSilver.WeightofSoulsFull/co m.unity3d.player.UnityPlayerActivity t34001}. System free memory=1512505344 05-25 16:24:59.922 2367 2367 D PowerSaverService: current package:com.IronSilv er.WeightofSoulsFull, activity:com.unity3d.player.UnityPlayerActivity, SMode:0, PMode:2 05-25 16:24:59.979 604 604 D SurfaceFlinger: duplicate layer name: changing com.IronSilver.WeightofSoulsFull/com.unity3d.player.UnityPlayerActivity to com.I ronSilver.WeightofSoulsFull/com.unity3d.player.UnityPlayerActivity#1 05-25 16:24:59.981 4797 5286 I Unity : SystemInfo CPU = ARM64 FP ASIMD AES, Cores = 8, Memory = 3606mb 05-25 16:24:59.981 4797 5286 I Unity : SystemInfo ARM big.LITTLE configurati on: 8 big (mask: 0xff), 0 little (mask: 0x0) 05-25 16:24:59.982 4797 5286 I Unity : ApplicationInfo com.IronSilver.Weight ofSoulsFull version 1.1.2 build 24c917c9-6a97-4241-8019-31f96847b683 05-25 16:24:59.982 4797 5286 I Unity : Built from '2019.1/staging' branch, V ersion '2019.1.1f1 (fef62e97e63b)', Build type 'Release', Scripting Backend 'il2 cpp', CPU 'arm64-v8a', Stripping 'Enabled' 05-25 16:25:00.009 1491 1604 I ActivityManager: Displayed com.IronSilver.Weigh tofSoulsFull/com.unity3d.player.UnityPlayerActivity: +226ms [aosp] 05-25 16:25:00.019 1491 1714 I WindowManager: Screen frozen for +245ms due to Window{2891c89 u0 com.IronSilver.WeightofSoulsFull/com.unity3d.player.UnityPlaye rActivity} 05-25 16:25:00.075 2367 2367 D PowerSaverService: current package:com.IronSilv er.WeightofSoulsFull, activity:com.unity3d.player.UnityPlayerActivity, SMode:0, PMode:2 05-25 16:25:00.122 4797 5286 D Unity : GL_OES_EGL_image GL_OES_EGL_image_ex ternal GL_OES_EGL_sync GL_OES_vertex_half_float GL_OES_framebuffer_object GL_OES rgb8_rgba8 GL_OES_compressed_ETC1_RGB8_texture GL_AMD_compressed_ATC_texture GL KHR_texture_compression_astc_ldr GL_KHR_texture_compression_astc_hdr GL_OES_tex ture_compression_astc GL_OES_texture_npot GL_EXT_texture_filter_anisotropic GL_E XT_texture_format_BGRA8888 GL_OES_texture_3D GL_EXT_color_buffer_float GL_EXT_co lor_buffer_half_float GL_QCOM_alpha_test GL_OES_depth24 GL_OES_packed_depth_sten cil GL_OES_depth_texture GL_OES_depth_texture_cube_map GL_EXT_sRGB GL_OES_textur e_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_hal f_float_linear GL_EXT_texture_type_2_10_10_10_REV GL_EXT_texture_sRGB_decode GL OES_element_index_uint GL_EXT_copy_image GL_EXT_geometry_shader GL_EXT_tessellat ion_shader GL_OES_texture_stencil8 GL_EXT_shader_io_blocks GL_OES_shader_image_a tomic GL_OES_sample_variables GL_EXT_texture_border_clamp GL_EXT_multisampled_re nder_to_texture GL_EXT_mul 05-25 16:25:00.122 4797 5286 D Unity : tisampled_render_to_texture2 GL_OES_s hader_multisample_interpolation GL_EXT_texture_cube_map_array GL_EXT_draw_buffer s_indexed GL_EXT_gpu_shader5 GL_EXT_robustness GL_EXT_texture_buffer GL_EXT_shad er_framebuffer_fetch GL_ARM_shader_framebuffer_fetch_depth_stencil GL_OES_textur e_storage_multisample_2d_array GL_OES_sample_shading GL_OES_get_program_binary G L_EXT_debug_label GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced coherent GL_QCOM_tiled_rendering GL_ANDROID_extension_pack_es31a GL_EXT_primitiv e_bounding_box GL_OES_standard_derivatives GL_OES_vertex_array_object GL_EXT_dis joint_timer_query GL_KHR_debug GL_EXT_YUV_target GL_EXT_sRGB_write_control GL_EX T_texture_norm16 GL_EXT_discard_framebuffer GL_OES_surfaceless_context GL_OVR_mu ltiview GL_OVR_multiview2 GL_EXT_texture_sRGB_R8 GL_KHR_no_error GL_EXT_debug_ma rker GL_OES_EGL_image_external_essl3 GL_OVR_multiview_multisampled_render_to_tex ture GL_EXT_buffer_storage GL_EXT_external_buffer GL_EXT_blit_framebuffer_params GL_EXT_clip_cull_distance 05-25 16:25:00.122 4797 5286 D Unity : GL_EXT_protected_textures GL_EXT_sha der_non_constant_global_initializers GL_QCOM_framebuffer_foveated GL_QCOM_shader _framebuffer_fetch_noncoherent GL_EXT_EGL_image_array GL_NV_shader_noperspective interpolation 05-25 16:25:02.537 4797 5286 I Unity : UnityIAP Version: 1.18.0 05-25 16:25:02.537 4797 5286 I Unity : UnityEngine.Purchasing.StandardPurcha singModule:Instance(AppStore) 05-25 16:25:02.537 4797 5286 I Unity : UnityEngine.Purchasing.IAPButtonStore Manager:.ctor() 05-25 16:25:02.537 4797 5286 I Unity : UnityEngine.Purchasing.IAPButtonStore Manager:.cctor() 05-25 16:25:02.537 4797 5286 I Unity : UnityEngine.Purchasing.IAPButton:OnEn able() 05-25 16:25:02.537 4797 5286 I Unity : 05-25 16:25:02.537 4797 5286 I Unity : (Filename: ./Runtime/Export/Debug/Deb ug.bindings.h Line: 48) 05-25 16:25:02.537 4797 5286 I Unity : 05-25 16:25:02.574 4797 5286 I Unity : File Path: /storage/emulated/0/Androi d/data/com.IronSilver.WeightofSoulsFull/files/Unity/314229ce-3457-4341-8f10-42bf d4aca3cd/IAP/store.json 05-25 16:25:02.574 4797 5286 I Unity : UnityEngine.Purchasing.FileReference: CreateInstance(String, ILogger) 05-25 16:25:02.574 4797 5286 I Unity : UnityEngine.Purchasing.StoreCatalogIm pl:CreateInstance(String, String, ILogger) 05-25 16:25:02.574 4797 5286 I Unity : UnityEngine.Purchasing.JSONStore:Init ialize(IStoreCallback) 05-25 16:25:02.574 4797 5286 I Unity : UnityEngine.Purchasing.PurchasingMana ger:Initialize(IInternalStoreListener, HashSet`1) 05-25 16:25:02.574 4797 5286 I Unity : System.Action`1:Invoke(T) 05-25 16:25:02.574 4797 5286 I Unity : UnityEngine.Purchasing.IAPButtonStore Manager:.ctor() 05-25 16:25:02.574 4797 5286 I Unity : UnityEngine.Purchasing.IAPButtonStore Manager:.cctor() 05-25 16:25:02.574 4797 5286 I Unity : UnityEngine.Purchasing.IAPButton:OnEn able() 05-25 16:25:02.574 4797 5286 I Unity : 05-25 16:25:02.574 4797 5286 I Unity : (Filename: ./Runtime/Export/Debug/Deb ug.bindings.h Line: 48) 05-25 16:25:02.574 4797 5286 I Unity : 05-25 16:25:02.586 4797 5286 I Unity : Fetching optimized store details from https://ecommerce.iap.unity3d.com/catalog?appid=314229ce-3457-4341-8f10-42bfd4a ca3cd&deviceid=967f72046ba73566afd45a64fd74fc90&userid=f86d2e25dd097ba9aabdf8753 2b4e7a2 05-25 16:25:02.586 4797 5286 I Unity : UnityEngine.Purchasing.StoreCatalogIm pl:FetchProducts(Action`1) 05-25 16:25:02.586 4797 5286 I Unity : System.Action`1:Invoke(T) 05-25 16:25:02.586 4797 5286 I Unity : UnityEngine.Purchasing.IAPButtonStore Manager:.ctor() 05-25 16:25:02.586 4797 5286 I Unity : UnityEngine.Purchasing.IAPButtonStore Manager:.cctor() 05-25 16:25:02.586 4797 5286 I Unity : UnityEngine.Purchasing.IAPButton:OnEn able() 05-25 16:25:02.586 4797 5286 I Unity : 05-25 16:25:02.586 4797 5286 I Unity : (Filename: ./Runtime/Export/Debug/Deb ug.bindings.h Line: 48) 05-25 16:25:02.586 4797 5286 I Unity : 05-25 16:25:03.580 4797 5286 I Unity : Failed to fetch IAP catalog due to un expected http status code, attempting to use cache 05-25 16:25:03.580 4797 5286 I Unity : UnityEngine.Purchasing.<>cDisplayCl ass10_0:b1(String) 05-25 16:25:03.580 4797 5286 I Unity : System.Action`1:Invoke(T) 05-25 16:25:03.580 4797 5286 I Unity : UnityEngine.Purchasing.d_4: MoveNext() 05-25 16:25:03.580 4797 5286 I Unity : UnityEngine.SetupCoroutine:InvokeMove Next(IEnumerator, IntPtr) 05-25 16:25:03.580 4797 5286 I Unity : 05-25 16:25:03.580 4797 5286 I Unity : (Filename: ./Runtime/Export/Debug/Deb ug.bindings.h Line: 48) 05-25 16:25:03.580 4797 5286 I Unity : 05-25 16:25:03.584 4797 5286 I UnityIAP: Requesting 1 products 05-25 16:25:03.584 4797 5286 I UnityIAP: QueryInventory: 1 05-25 16:25:03.584 4797 4937 I UnityIAP: invoking callback 05-25 16:25:03.584 4797 4937 I UnityIAP: Querying owned items, item type: inap p 05-25 16:25:03.584 4797 4937 I UnityIAP: Package name: com.IronSilver.Weightof SoulsFull 05-25 16:25:03.585 4797 4937 I UnityIAP: Calling getPurchases with continuatio n token: null 05-25 16:25:03.590 4797 4937 I UnityIAP: Owned items response: 0 05-25 16:25:03.590 4797 4937 I UnityIAP: Continuation token: null 05-25 16:25:03.590 4797 4937 I UnityIAP: Querying SKU details. 05-25 16:25:03.606 4797 4937 I UnityIAP: Querying owned items, item type: subs
05-25 16:25:03.606 4797 4937 I UnityIAP: Package name: com.IronSilver.Weightof SoulsFull 05-25 16:25:03.606 4797 4937 I UnityIAP: Calling getPurchases with continuatio n token: null 05-25 16:25:03.705 4797 4937 I UnityIAP: Owned items response: 0 05-25 16:25:03.706 4797 4937 I UnityIAP: Continuation token: null 05-25 16:25:03.706 4797 4937 I UnityIAP: Querying SKU details. 05-25 16:25:03.718 4797 4937 I UnityIAP: onQueryInventoryFinished: true 05-25 16:25:03.718 4797 4937 I UnityIAP: Inventory refresh successful. (respon se: 0:OK) 05-25 16:25:03.719 4797 4937 E Unity : Scripting proxy object was destroyed, because Unity player was unloaded. 05-25 16:25:06.674 4797 5286 I Unity : IAPButton.PurchaseProduct() with prod uct ID: donationfordevelopersofweightofsouls 05-25 16:25:06.674 4797 5286 I Unity : UnityEngine.Purchasing.IAPButton:Purc haseProduct() 05-25 16:25:06.674 4797 5286 I Unity : UnityEngine.Events.UnityAction:Invoke () 05-25 16:25:06.674 4797 5286 I Unity : UnityEngine.Events.UnityEvent:Invoke( ) 05-25 16:25:06.674 4797 5286 I Unity : UnityEngine.EventSystems.EventFunctio n`1:Invoke(T1, BaseEventData) 05-25 16:25:06.674 4797 5286 I Unity : UnityEngine.EventSystems.ExecuteEvent s:Execute(GameObject, BaseEventData, EventFunction`1) 05-25 16:25:06.674 4797 5286 I Unity : UnityEngine.EventSystems.StandaloneIn putModule:ProcessTouchPress(PointerEventData, Boolean, Boolean) 05-25 16:25:06.674 4797 5286 I Unity : UnityEngine.EventSystems.StandaloneIn putModule:ProcessTouchEvents() 05-25 16:25:06.674 4797 5286 I Unity : UnityEngine.EventSystems.StandaloneIn putModule:Process() 05-25 16:25:06.674 4797 5286 I Unity : 05-25 16:25:06.674 4797 5286 I Unity : (Filename: ./Runtime/Export/Debug/Deb ug.bindings.h Line: 48) 05-25 16:25:06.674 4797 5286 I Unity : 05-25 16:25:06.685 4797 5286 E Unity : Purchase failed because Purchasing wa s not initialized correctly 05-25 16:25:06.685 4797 5286 E Unity : UnityEngine.Purchasing.IAPButtonStore Manager:InitiatePurchase(String) 05-25 16:25:06.685 4797 5286 E Unity : UnityEngine.Events.UnityAction:Invoke () 05-25 16:25:06.685 4797 5286 E Unity : UnityEngine.Events.UnityEvent:Invoke( ) 05-25 16:25:06.685 4797 5286 E Unity : UnityEngine.EventSystems.EventFunctio n`1:Invoke(T1, BaseEventData) 05-25 16:25:06.685 4797 5286 E Unity : UnityEngine.EventSystems.ExecuteEvent s:Execute(GameObject, BaseEventData, EventFunction`1) 05-25 16:25:06.685 4797 5286 E Unity : UnityEngine.EventSystems.StandaloneIn putModule:ProcessTouchPress(PointerEventData, Boolean, Boolean) 05-25 16:25:06.685 4797 5286 E Unity : UnityEngine.EventSystems.StandaloneIn putModule:ProcessTouchEvents() 05-25 16:25:06.685 4797 5286 E Unity : UnityEngine.EventSystems.StandaloneIn putModule:Process() 05-25 16:25:06.685 4797 5286 E Unity : 05-25 16:25:06.685 4797 5286 E Unity : (Filename: ./Runtime/Export/Debug/Deb ug.bindings.h Line: 48) 05-25 16:25:06.685 4797 5286 E Unity : 05-25 16:25:06.698 4797 5286 I Unity : IAPButton.OnPurchaseFailed(Product , PurchaseFailureReason PurchasingUnavailable) 05-25 16:25:06.698 4797 5286 I Unity : UnityEngine.Purchasing.IAPButton:OnPu rchaseFailed(Product, PurchaseFailureReason) 05-25 16:25:06.698 4797 5286 I Unity : UnityEngine.Purchasing.IAPButtonStore Manager:InitiatePurchase(String) 05-25 16:25:06.698 4797 5286 I Unity : UnityEngine.Events.UnityAction:Invoke () 05-25 16:25:06.698 4797 5286 I Unity : UnityEngine.Events.UnityEvent:Invoke( ) 05-25 16:25:06.698 4797 5286 I Unity : UnityEngine.EventSystems.EventFunctio n`1:Invoke(T1, BaseEventData) 05-25 16:25:06.698 4797 5286 I Unity : UnityEngine.EventSystems.ExecuteEvent s:Execute(GameObject, BaseEventData, EventFunction`1) 05-25 16:25:06.698 4797 5286 I Unity : UnityEngine.EventSystems.StandaloneIn putModule:ProcessTouchPress(PointerEventData, Boolean, Boolean) 05-25 16:25:06.698 4797 5286 I Unity : UnityEngine.EventSystems.StandaloneIn putModule:ProcessTouchEvents() 05-25 16:25:06.698 4797 5286 I Unity : UnityEngine.EventSystems.StandaloneIn putModule:Process() 05-25 16:25:06.698 4797 5286 I Unity : 05-25 16:25:06.698 4797 5286 I Unity : (Filename: ./Runtime/Export/Debug/Deb ug.bindings.h Line: 48) 05-25 16:25:06.698 4797 5286 I Unity :
Please anyone could help me? I am about a week in this problem.
Your answer
Follow this Question
Related Questions
Unity IAP not working on android build 1 Answer
Crash when returning from PlayStore purchasing interface 1 Answer
UnityIAP not restoring purchases on Android 1 Answer
how can I make a IAP Subscription code in unity 2019.1.9 for google play ? 0 Answers
Animator.Update High CPU Usage on Unity 5 resulting in bugs on Android 0 Answers