// ---------------------------------------------------
// If you are **NOT** using SceneDelegate
// ---------------------------------------------------
#import <Purchasely/Purchasely-Swift.h>
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
// You can chain calls to multiple handler using a OR
return [Purchasely handleWithDeeplink:url];
// ---------------------------------------------------
// If you are using SceneDelegate
// ---------------------------------------------------
#import <Purchasely/Purchasely-Swift.h>
- (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions {
NSURL *url = connectionOptions.URLContexts.allObjects.firstObject.URL;
[Purchasely handleWithDeeplink:url];
- (void)scene:(UIScene *)scene openURLContexts:(NSSet<UIOpenURLContext *> *)URLContexts {
NSURL *url = URLContexts.allObjects.firstObject.URL;
[Purchasely handleWithDeeplink:url];