StephenVinouze / KinApp

A Kotlin In App Purchase library that lets you easily manage your billing process in Android
Apache License 2.0
81 stars 13 forks source link

unable to purchase (or get the library working) #8

Closed ghost closed 5 years ago

ghost commented 5 years ago

I created a DonationHandler which contains this code https://gist.github.com/mrgreaper/9747b72118f1e800953ee00b8af0007e

The xml for it just has one button.

Line 19: Log.d("IAP","READY") is never triggered leading me to believe the library is not activating correctly

Line 50: Log.d("IAP","loaded") does trigger

Line 52:Log.d("iap","CLICK") when the button is pressed

been trying to get IAP working all day (and most of the night) so I may be missing something obvious?

also does .price work with your library to get the price of an IAP ? (from https://developer.android.com/google/play/billing/billing_library_overview#kotlin)

ghost commented 5 years ago

Ok turns out the code does not work on an emulator...it does however work great on a physical device. Thank you for the library! (wonder how many times yesterday I had the code working but the emulator said no? O.o)