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.

    // Detecting if IMC SDK is installed 
    if(NSClassFromString(@"MCESdk"))
    {
        NSLog(@"IMC SDK Installed.");
    }
    else
    {
        NSLog(@"IMC SDK Not Installed.");
    }

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);

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

Go Back to the Mobile App Messaging home page.

Join The Discussion

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