In Android development with Google Billing, how do I get the billing frequency for a Subscription
SkuDetails.subscriptionPeriod()
returns a date string. Is there a way to get the billing frequency for example monthly
or yearly
or am I going to have to just cleverly code this to match what I have in console?
I was wrong to assume truth from searching through other posts. I have debugged and found out that:
SkuDetails.subscriptionPeriod()
returns something like P1Y, or P1M, or whatever else as a string.
I am now using those abbreviations for reference.