j3k0 / cordova-non-renewing-subscription

Simple API for Non-Renewing Subscriptions based on Fovea's Cordova Purchase Plugin
MIT License
19 stars 6 forks source link

Questions about android implementation and trial #20

Closed sharpMouse closed 5 years ago

sharpMouse commented 5 years ago
  1. Android doesn't have non-renewing subscriptions. How did you implement them? What items should I create in Google Play Console?

  2. If I want to give users some trial, can I do it using this plugin? How? (it's build-in feature of renewing subscriptions, but making trial without subscriptions is very tricky)

j3k0 commented 5 years ago
  1. For Android, non-renewing subscription are implemented using managed products. On both Android and iOS, non-renewing subscriptions have no "built-in" duration, so this part is managed in the code... You have to store the expiry date on your server or on the device (less secure, but possible).

  2. There is no support for trial periods, it should be possible to add though (check the code, it's not too complicated)

On Thu, Jun 6, 2019 at 1:37 PM Basil22 notifications@github.com wrote:

1.

Android doesn't have non-renewing subscriptions. How did you implement them? 2.

If I want to give users some trial, can I do it using this plugin? (it's build-in feature of renewing subscriptions, but making trial without subscriptions is very tricky)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/j3k0/cordova-non-renewing-subscription/issues/20?email_source=notifications&email_token=AABO3CPOJDKGOR2TFHBCWHTPZDSE7A5CNFSM4HVALTWKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GX7SVXQ, or mute the thread https://github.com/notifications/unsubscribe-auth/AABO3CKS5ZZHE6DWNLTEJ2TPZDSE7ANCNFSM4HVALTWA .

sharpMouse commented 5 years ago

Thank you for the explained answer.

The main problem with trial is that there are no good place to keep initial date - both on Android and iOS local storage is deleted when application is deleted.

j3k0 commented 5 years ago

If device portability is required, you have to store your users' subscription status on a server (or the cloud).

On Thu, Jun 13, 2019 at 12:14:19AM -0700, Basil22 wrote:

Thank you for the explained answer.

The main problem with trial is that there are no good place to keep initial date - both on Android and iOS local storage is deleted when application is deleted.

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/j3k0/cordova-non-renewing-subscription/issues/20#issuecomment-501579939

sharpMouse commented 5 years ago

Understood, thank you again.