EvilMindDevs / hms-sdk-unity

Unity C# wrapper SDK for Huawei Mobile Services kits.
MIT License
25 stars 23 forks source link

InAppPuchaseData method discrepancies #56

Closed manelizzard closed 3 years ago

manelizzard commented 4 years ago

We are trying to obtain subscription data from InAppPuchaseData, concretely SubValid, but we get the following error:

AndroidJavaException: java.lang.NoSuchMethodError: no non-static method with name=‘getSubValid’ signature=‘()Z’ in class Ljava.lang.Object;

As per Android doc, the method signature is isSubValid. Is there a possibility of this discrepancy being the cause?

Also ExpirationDate is calling getNumOfDiscount: https://github.com/m0skit0/hms-sdk-unity/blob/155547072df8678ff8d3e5e5da96dc61ff127713/hms-sdk-unity/HuaweiMobileServices/IAP/InAppPurchaseData.cs#L57

However, we can properly access to OrderID and ProductId

m0skit0 commented 3 years ago

Fixed in commits 30d56d160c37bea3dad8b20d04253d4da51a5a02 (master) and d13940c5ddebc332f15f68fc3ae8eaf451dae1ed (2018)