Jump to content

Codest

Verified Members
  • Posts

    13
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi , Just wondering if there was an update on this? This is the only thing we are waiting on for submission, so any help is appreciated.
  2. Hey , Sure, here are the parts connected to GetLicense. As you can see I call Init in Awake(), then upon success I call GetLicense in InitStatusHandler() using LicenseChecker. I get the same error on the account that the app is on and a different account that shouldn't have a license. And I'm using the correct app id and app key because I have IAP working properly. private void Awake() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } DontDestroyOnLoad(gameObject); mListener = new Result(); Api.Init(InitStatusHandler, IAP_APP_ID); } private static void InitStatusHandler(int nResult) { instance.Log("InitStatusHandler: " + nResult); if (nResult != 0) { Viveport.Core.Logger.Log("Init setup error ..."); // Handle error Api.Shutdown(ShutdownStatusHandler); } Api.GetLicense(new LicenseChecker(), IAP_APP_ID, IAP_APP_KEY); } class LicenseChecker : Api.LicenseChecker { public override void OnSuccess(long issueTime, long expirationTime, int latestVersion, bool updateRequired) { instance.Log("[MyLicenseChecker] issueTime: " + issueTime); instance.Log("[MyLicenseChecker] expirationTime: " + expirationTime); instance.Log("[MyLicenseChecker] latestVersion: " + latestVersion); instance.Log("[MyLicenseChecker] updateRequired: " + updateRequired); // Do more things } public override void OnFailure(int errorCode, string errorMessage) { instance.Log("[MyLicenseChecker] errorCode: " + errorCode); instance.Log("[MyLicenseChecker] errorMessage: " + errorMessage); //Application.Quit(); } }
  3. Thanks for the response Here's my error: E/Unity: AndroidJavaException: java.lang.IllegalArgumentException: java.security.spec.InvalidKeySpecException: java.lang.RuntimeException: error:0c0000af:ASN.1 encoding routines:OPENSSL_internal:TOO_LONG java.lang.IllegalArgumentException: java.security.spec.InvalidKeySpecException: java.lang.RuntimeException: error:0c0000af:ASN.1 encoding routines:OPENSSL_internal:TOO_LONG at com.htc.store.licensing._LicenseChecker.generatePublicKey(LicenseChecker.java:383) at com.htc.store.licensing._LicenseChecker.<init>(LicenseChecker.java:351) at com.htc.store.licensing.LicenseChecker.<init>(LicenseChecker.java:63) at com.htc.store.licensing.ViveportSDK_DRM_Adapter.getLicense(ViveportSDK_DRM_Adapter.java:72) at com.htc.viveport.Api.getLicense(Api.java:60) at com.unity3d.player.ReflectionHelper.nativeProxyInvoke(Native Method) at com.unity3d.player.ReflectionHelper.a(Unknown Source) at com.unity3d.player.ReflectionHelper$1.invoke(Unknown Source) at java.lang.reflect.Proxy.invoke(Proxy.java:813) at $Proxy6.onResult(Unkno...
  4. Hey I also get these errors when trying to test failure. Is it normal behaviour? Should it be submitted as is?
×
×
  • Create New...