After adding the SDK, configure the project by setting a user ID and device ID so that logs are correctly attributed to users and devices.
Configuration after an upgrade
In versions 10.1.32 and later, the APRemoteLogging class Category file is no longer required. The middle layer reads configuration from meta.config through a wrapper instead. If you upgrade from an earlier version, remove the old APRemoteLogging Category file from your project.
Remove the old APRemoteLogging Category file shown below.

Configure a user ID
The user ID identifies who performed each action and is recorded by default in instrumentation logs.
Configure the user ID in the MPaaSInterface Category file:
@implementation MPaaSInterface (Portal)
- (NSString *)userId
{
return @"the-user-id";
}
@end
Configure a device ID
The device ID configuration feature is supported in baseline versions 10.2.3.69 and later.
The device ID distinguishes one physical device from another, enabling accurate device-level attribution in logs. Override the clientId method in the MPMasSettings Category file:
#import "MPMasSettings+CustomClientId.h"
@implementation MPMasSettings (CustomClientId)
- (NSString *)clientId {
return @"the-client-id";
}
@end
What's next
With your project configured, add the log types your app requires: