android - which way to implement in app billing? -
after reading android documentation on developer website, i've realized there 2 ways set purchase:
create iabhelper instance base64 string , use request purchase... in no way mentions have use serviceconnection bind the
iinappbillingservice
android.there seems way have create
serviceconnection
bindsiinappbillingservice
, have create bundle etc.
is possible use way create iabhelper
instance , call methods on instance acquired trivialdrive app ?
iabhelper internally uses serviceconnection , binds service when startsetup() on iabhelper. docs state (http://developer.android.com/training/in-app-billing/preparing-iab-app.html), still have to include .aidl file in project iinappbillingservice.
i suggest alternatives iabhelper. many developers (myself included) have found numerous bugs in implementation. example, queryinventoryasync implementation not handle concurrency correctly. lot of crashes due iabhelper if use it.
there numerous alternatives on github.
Comments
Post a Comment