Add if app is now free?
mostmaz opened this issue · 4 comments
mostmaz commented
hi
thank you for this api it is very useful
can you please add a way to get if the app is now free?
some apps goes from paid to free for certain period , is there a way to check if the is free now?
yeriomin commented
Hello. I do it like this:
static public boolean isFree(DocV2 details) {
if (details.getOfferCount() > 0) {
return details.getOffer(0).getMicros() == 0;
}
return false;
}
mostmaz commented
Can you please give me an example ?
i do like this to get app package name :
String apppackagename = app.getPackageName();
how to do the same for getting offer is free or paid like you did above?
mostmaz commented
Please?
mostmaz commented
I got it , thankyou