Link Search Menu Expand Document

Configuration

Initialize our SDK once in the early stage of your application lifecycle

You can find your API key in your app Setting page in the Glassfy Dashboard, you can also copy it by clicking on the button to the left of the form.

Step 1

  • func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    
      Glassfy.initialize(apiKey: "YOUR_API_KEY", watcherMode: false)
    
      [...]
    }
    
  • - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
      
      [Glassfy initializeWithAPIKey:@"YOU_API_KEY" watcherMode:NO];
    
      [...]
    }
    

Copyright © 2021 Glassfy.