Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Please bring back UnityIAP logcat tag for UnityIAP android logs

Discussion in 'Unity IAP' started by stopiccot_tds, Dec 8, 2020.

  1. stopiccot_tds

    stopiccot_tds

    Joined:
    Oct 1, 2016
    Posts:
    111
    Just updated to 2.2.4 from 1.23.4. On android UnityIAP logs now use Unity log tag instead of UnityIAP. This makes device logs filtering a nightmare. Please rollback this change.
     
  2. MatthieuSmith_Unity3D

    MatthieuSmith_Unity3D

    Joined:
    Oct 16, 2020
    Posts:
    23
    Hello @stopiccot_onthespot,

    Indeed there was a small change to the logs we publish. Actually all logs that were under the tag `UnityIAP` were removed. We removed those since they were mostly debug logs for us.

    That being said under the `Unity` tag we always pushed important logging that we believe is important for the devs. This was true for 1.23.4 as well. An example of these important logs would be : `I/Unity: Initializing UnityPurchasing via Codeless IAP` (there are a lot more logs than just this one). We did however add a few more information to our existing logs under the `Unity` tag.

    I am curious though maybe you are receiving more logs than usual from Unity. Would you mind sharing your logs you receive?
     
  3. stopiccot_tds

    stopiccot_tds

    Joined:
    Oct 1, 2016
    Posts:
    111
    Under Unity tag I see only:
    Code (CSharp):
    1. 2020-12-17 16:43:41.019 14203-14255/? I/Unity: UnityIAP Version: 2.2.5
    Right now on my device I receive OnPurchaseFailed with reason: Unknown. Really no way to debug it. Any way I can enable some kind of verbose debug logs for purchasing?
     
  4. stopiccot_tds

    stopiccot_tds

    Joined:
    Oct 1, 2016
    Posts:
    111
    Here is the full log
    Code (csharp):
    1.  
    2. 2020-12-17 16:43:41.019 14203-14255/? I/Unity: UnityIAP Version: 2.2.5\
    3. 2020-12-17 16:43:41.902 14203-14255/? I/Unity: Can't add component 'Canvas' to GameScreen(Clone) because such a component is already added to the game object!\
    4. 2020-12-17 16:43:43.450 14203-14255/? I/Unity: Can't add component 'Canvas' to ShopScreen(Clone) because such a component is already added to the game object!\
    5. 2020-12-17 16:43:45.033 14203-14255/? I/Unity: purchase(\{0\}): coins_1.00_usd\
    6. 2020-12-17 16:44:05.657 14203-14255/? I/Unity: onPurchaseFailedEvent(\{0\}): coins_1.00_usd\
    7. 2020-12-17 16:44:05.676 14203-14255/? I/Unity: Can't add component 'Canvas' to SimplePopup(Clone) because such a component is already added to the game object!\
    8. 2020-12-17 16:44:05.699 14203-14255/? I/Unity: [AppLovin MAX] Invoking event: System.Action`1[System.String]. Param: 026291151ffc1505\
    9.  
     
  5. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Unfortunately "Unknown" is the only information we receive back via the Google Billing API. If you can provide steps to reproduce, we can take a look