android - In App Billing - Monthly Subscription Version 3 -
i want implement monthly subscriptions application enable ad-free version. have implemented demo that, , working fine.
while implementing in real scenario in application, have few queries :-
what if user changes his/her mobile device. how can managed @ other device also. (i had planned when subscription purchased on 1 device, save yes/no value in shared pref , enable or disable ads based on that. problem when change device, how value of shared pref can checked @ other device)
what if user cancels subscriptions google wallet. have saved yes/no value in preferences, check active subscription using purchase status api. (is fine ?)
i want know way how these subscriptions should handled enable no-ads version application. better suggestion requested.
you need pass purchase data server store @ end. can fetch users subscription status time server. check if shared pref has subscription info show/hide ads. if shared pref doesn't have subscription related data (either device change or user may have cleared cache) should ask server data , show/hide ads accordingly.
if user cancels subscription can fire inventory query give current status of purchase. approach work here fine.
Comments
Post a Comment