Implementing conditional free-trial experience

We'd like to offer our user a free-trial experience depending whether they have purchase a product from us (outside app). for example, if we identify a logged in user matches the user from our database, the user has full access to the app, if not, a 30-day free trial, on the 31st day, we prompt a modal to drive user outside app and complete a purchase, when user opens the app again, we verify credential against our database and grant full-access.

I have been looking into the auto-renewable subscription free trial rules but that's designed to be collecting payment from user after trial expiration, which is not what we're after.

Can someone shed some light? is this achievable, or if there's another way to achieve a similar experience?

Are we able to achieve the same experience for Android?



You might will find the DeviceCheck Framework useful for detecting if a given device already have ended its trial-period. That framework allows your app ask for a token and your backend can contact Apple using that token to request the state of two state bit for that device. It is up to your application what those state bits mean, you could say that 00 app is installed, 01 trial-period started, 10 full-access unlocked and 11 fraudulent device.
Implementing conditional free-trial experience
 
 
Q