Documentation > iOS

Advanced Topics

Changing account credentials

If you’d not like to insert your account credentials in your app’s Info.plist, or would like to change your account ID programmatically, you can do so in your app delegate, in application:didFinishLaunchingWithOptions:

Select Platform
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [CleverTap changeCredentialsWithAccountID:@"Your account ID here" andToken:@"Your account token here"];
    [CleverTap autoIntegrate];
    ...
    return YES;
}
copy Copied
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject:AnyObject]?) -> Bool {
    CleverTap.changeCredentialsWithAccountID("Your account ID here", andToken: "Your account token here")
    CleverTap.autoIntegrate()
    ...
    return true
}
copy Copied