Link Search Menu Expand Document

Watcher Mode

Glassfy can operate in “Watcher Mode” where the application can access all the analytics and connectors without affecting existing purchasing code.

You can integrate Glassfy SDK and keep all your existing purcahse code taking advantange of all the Glassfy dashboard feature including analytics, connectors and receipt validation.

Watcher Mode

When you initialize the SDK set the optional watcherMode to true.

  • func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    
      Glassfy.initialize(apiKey: "YOUR_API_KEY", userId: nil, watcherMode: true) { (err) in
        print("SDK Initialized")
      }
    
      [...]
    }
    
  • - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
      [Glassfy initializeWithAPIKey:@"YOU_API_KEY"
                              userId:nil
                        watcherMode:YES
                          completion:^(NSError *err) {
        NSLog(@"SDK Initialized");
      }];
    
      [...]
    }
    

Copyright © 2021 Glassfy.