Preview Mode

Purpose

Preview mode benefits developing business with easy demostration of ads. Preview mode can be accessed through QR code which corresponds to registered deep link for app and activates a specific ad directly.

Configuration

  • Request a deep link url scheme from your intowow account manager.

  • Generate and use a QR Code in the following format: {YOUR_APP_URL_SCHEME}://crystalexpress?adid={AD ID}. CrystalExpress SDK only deals with urls begin with crystalexpress.

- (BOOL)application:(UIApplication *)application
                        openURL:(NSURL *)url
    sourceApplication:(NSString *)sourceApplication
                annotation:(id)annotation
{
        [I2WAPI handleDeepLinkWithUrl:url sourceApplication:sourceApplication];

        .....
        return YES;
}
configure deeplink
  1. Set up url scheme at Project -> Info -> URL Types.

  2. Implement application:openURL:sourceApplication:annotation: in AppDelegate.m according to the example to activate preview mode of CrystalExpress SDK

  3. Check the network connection before using preview mode.

  4. Scan the QR code you generate with any QR code scanner to start using preview mode.

  5. A prompt shows up after your app is opened. Click it and app will be terminated.

  6. Restart your app and wait for SDK to download the ad to preview.

  7. Do not terminate your app when downloading ad.

  8. Terminate the app to exit preview mode.

Last updated