We’re exploring the feasibility of implementing additional restrictions on free trial installations within our app. Is there a method available to discern whether an app installation is a result of an actual purchase or simply a free trial? Any insights or guidance on this matter would be greatly appreciated!
The product context includes a license?.isEvaluation field that you can check.
3 Likes
Does license?.isEvaluation:true indicate that the app is in free trial . Confirming just in case
Thanks for the response
Yes, that’s correct. license?.isEvaluation will be true as long as the license is in the free trial.
2 Likes
For the sake of completeness: the license object looks different whether you’re using UI Kit 1 (https://developer.atlassian.com/platform/forge/ui-kit-components/uik1_hooks/#function-signature-3) or UI Kit 2 / Custom UI (https://developer.atlassian.com/platform/forge/apis-reference/ui-api-bridge/view/#function-signature-2). So make sure the required property exists.
3 Likes