Jump to content
Happy Holidays! Limited Staff Responses: 1/20 - 1/31 ×

Unity Wave SDK IAP


Taoma
 Share

Recommended Posts

Hi,

 

I am porting existing app to Vive Focus using WaveSDK for Unity. I Am at the phase where I need to implement IAP (In-app purchases)

and I was wondering whether I should use Viveport SKD for it?

 

I already tried using it but I receive errors: Exception: JNI: Init'd AndroidJavaClass with null ptr! 

 

These lines are causing it:

 

Viveport.IAPurchase.IsReady(listener, "VIVEPORT_API_KEY");Viveport.Api.Init(InitStatusHandler, "VIVEPORT_ID");

 

Any suggestions?

 

Link to comment
Share on other sites

Hi 
Please change the calling sequence as following:
1. Viveport.Api.Init(InitStatusHandler, "VIVEPORT_ID");
2.Viveport.IAPurchase.IsReady(listener, "VIVEPORT_API_KEY");
"Init" should be done first, then on "IInitStatusHandler" success call "IsReady"

 

Thank you

 

Cory.C

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...