Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question [Huawei] UDP initialization error "sign in failed", IAPs don't work

Discussion in 'Unity Distribution Portal (UDP)' started by derElbi, Jan 14, 2021.

  1. derElbi

    derElbi

    Joined:
    Nov 8, 2017
    Posts:
    2
    Hey hey,

    we're working on releasing our first app in various stores to check effort / payoff, and are struggling with Huawei. We made it through the review and our app is live and works, but in-app purchases don't work. Checking logcat on device, I see dozens of
    E/HMSSDK_HMSPackageManager: Failed to find HMS apk
    , which seem like UDP internals,
    one or two blocks of
    E/HMSSDK_BridgeActivity: In initialize, Failed to create 'IUpdateWizard' instance.Invalid name:
    I/HMSSDK_BridgeActivity: Enter finish.
    I/HMSSDK_UpdateAdapter: onBridgeActivityResult
    I/HMSSDK_[ACCOUNTSDK]AccountSignInHubActivity: version check failed
    I/HMSSDK_AvailableAdapter: user response 28

    then the big one that seems the real cause of our issues:
    E/UnityDistPlatform: [HUAWEI] sign in failed, status: 28
    I/UnityDistPlatform: [HUAWEI] Setup finished.
    I/UnityDistPlatform: [HUAWEI] Init Fail: sign in failed
    E/libc: Access denied finding property "ro.serialno"
    I/UnityDistPlatform: [HUAWEI] UDP Version: v2.1.4

    and finally blocks about the error getting caught in my IInitListener's OnInitializeFailed and associated obfuscated callstack.

    As a result of the errors, IAPs fail because they're not initialized correctly.

    Searching the web, I found someone with a similar message but different error code being recommended to update the HMS Core (which we don't install manually since we use UDP, so how would one even update that).
    Another person had issues with their SHA256 not being copied correctly, which is also not the case here.

    We
    + copied Pub Key and App Secret from Huawei to UDP, and
    + the SHA from UDP to Huawei.
    + App is signed with our own output.zip via the UDP guide, and
    + until we sent our first release through review, there was no setting picked on Huawei.
    It now shows "Export and upload key and cert" as selected, and shows the same steps as the UDP guide showed earlier. I assume UDP uploads the signature correctly here, or is that a step I have to redo manually?

    Help is much appreciated, as we can't find any documentation regarding error codes or further known issues.

    Cheers,

    Michael

    PS: Sandbox testing works without any issues.
     
    Last edited: Jan 14, 2021
  2. Iron-Phuong

    Iron-Phuong

    Joined:
    Jun 22, 2015
    Posts:
    2
    I also have the same problem, there is no solution yet.
     
  3. Unity-Boon

    Unity-Boon

    Unity Technologies

    Joined:
    Jan 18, 2017
    Posts:
    128
    Please update your Huawei HMS AGC Services package to the latest version. We have found that there might be some compatible issue with the older version.

    https://assetstore.unity.com/packages/add-ons/services/huawei-hms-agc-services-176968

    Please try it and let us know if you are still having any problem.