Purchasely / Purchasely-iOS

Purchasely iOS SDK
https://www.purchasely.com
Other
26 stars 0 forks source link

Example project is out of date #31

Closed saldous closed 7 months ago

saldous commented 7 months ago

Hi, your example project doesn't work and needs updating.

e.g. Purchasely.isReadyToPurchase(true) Type 'Purchasely' has no member 'isReadyToPurchase'

I believe this needs changing to: Purchasely.readyToOpenDeeplink(true)

and:

Purchasely.start(withAPIKey: "afa96c76-1d8e-4e3c-a48f-204a3cd93a15",
                         appUserId: "DEMO_USER",
                                                   logLevel: .debug)

needs changing to: (it was missing the now required storeKitSetting)

Purchasely.start(withAPIKey: "afa96c76-1d8e-4e3c-a48f-204a3cd93a15",
                         appUserId: "DEMO_USER",
                                                   storekitSettings: .storeKit2, 
                                                   logLevel: .debug)

and: Purchasely.handle(deeplink: url)

needs changing to: Purchasely.isDeeplinkHandled(deeplink: url)

It would also be good if you can add an example of how to handle restores.

EPIKorial commented 7 months ago

Hello @saldous, thank you so much for bringing this to our attention. You are absolutely right.

We are going to update this but also we are going to release a new version of this sample application really soon.

Best regards