Detecting whether the current subscription is in Trial for Google Play store?

前端 未结 2 501
我寻月下人不归
我寻月下人不归 2021-01-11 14:36

I\'m trying to detect whether a user who has purchased my application through in-app purchase is in currently in Trial period or not.

For Apple (ios store) it was an

2条回答
  •  逝去的感伤
    2021-01-11 15:04

    I checked the difference between initiationTimestampMsec and validUntilTimestampMsec. If it matches my configured trial period its trial.

提交回复
热议问题