Overview

Skill Level: Any

In some cases, you might not be sure that the Mobile app messaging SDK is installed on an app. Acoustic Campaign provides a way to detect the SDK on your iOS app and to retrieve the SDK’s registration details, such as userID and appKey. If the SDK is built on your iOS app, the following code generates information about the SDK.

Prerequisites

Not what you’re looking for? Check out all our available tutorials for mobile app messaging here.

 

 

 

Step-by-step

  1. Generates information about the SDK.

    // Detecting if IMC SDK is installed 
        if(NSClassFromString(@"MCESdk"))
        {
            NSLog(@"IMC SDK Installed.");
        }
        else
        {
            NSLog(@"IMC SDK Not Installed.");
        }
    
  2. After you know that the SDK is on your iOS app, you can query for its version.

    NSString* versionNum = [MCESdk sharedInstance].sdkVersion;
        NSLog(@"IMC SDK version %@", versionNum);
    
  3. Check the registration details.

    Next, you can check the registration details. For information about obtaining registration details, see Locating registration details.

Expected outcome

Need more help? Check out all of our available tutorials for mobile app messaging here.

 

Join The Discussion

Your email address will not be published. Required fields are marked *