I am using In-app billing v3 and it runs fine most of the time but crashes at times with the following error-
Error occurred
Java language: illegalStateException: IAB helper is not set up. Can't perform
operation: queryinventory
The error seems to be triggered by the manager.GetOwnedProducts call at a time when IAB has not yet completed its set up.
I am initializing the IAB set up when Activity_Create executes the FirstTime with-
manager.Initialize("manager", key), and
manager.DebugLogging = True
The GetOwnedProducts call is embedded further down in the program. Often the IAB set up is complete by the time this call is executed but at other times it is not and I get the above error.
Is there a way to check if the IAB set up is completed before making the GetOwnedProducts call? Or, is there a work around this problem or an internal IAB variable name that would acknowledge its readiness?
Error occurred
Java language: illegalStateException: IAB helper is not set up. Can't perform
operation: queryinventory
The error seems to be triggered by the manager.GetOwnedProducts call at a time when IAB has not yet completed its set up.
I am initializing the IAB set up when Activity_Create executes the FirstTime with-
manager.Initialize("manager", key), and
manager.DebugLogging = True
The GetOwnedProducts call is embedded further down in the program. Often the IAB set up is complete by the time this call is executed but at other times it is not and I get the above error.
Is there a way to check if the IAB set up is completed before making the GetOwnedProducts call? Or, is there a work around this problem or an internal IAB variable name that would acknowledge its readiness?