I know it has been asked before but all questions I found are old. I figured that maybe something has changed since.
I want to offer a trial period where the user can use all the features. I dont like the way Google in app purchases system does this..It makes the user pay for the subscription and gives the option to cancel it before the trial is over.
What I want is to offer the trial without making the user pay for it in advance. Is that possbile using Google's APIs or do I have to use my own server for this ?
I've developed an Android trial library which you can simply drop into your project and it will take care of all the server-side management for you (including offline grace periods) so you don't need your own server.
To use it, simply
Add the library to your main module's
build.gradleInitialize the library in your main activity's
onCreate()methodAdd a callback handler:
To start a trial, call
mTrialy.startTrial("YOUR_TRIAL_SKU", mTrialyCallback);Your app key and trial SKU can be found in your Trialy developer dashboard.