tiki-deprecated / publish-sdk-ios

TIKI SDK (iOS) - Consumer Data Licensing
https://mytiki.com/docs/sdk-overview
MIT License
3 stars 2 forks source link

Add gating mechanism to TikiSdk.present() method to only present Offer if valid License does not exist #192

Closed ricardobrg closed 1 year ago

ricardobrg commented 1 year ago

Currently, the TikiSdk.present() method presents an Offer to the user regardless of whether or not they have a valid License.

To address this issue, we should add a gating mechanism to the TikiSdk.present() method through TikiSdk.guard() that checks whether or not the user has a valid License before presenting the Offer.

If the guard() method returns false, we can present the Offer. If it returns true, we should not present the Offer.