Support Topics Documentation Slack YouTube Blog

Device ID in Messaging Service?

In messaging service, when we see the Messages table then there is a column name ‘Device ID’. Are you using this code to get the device id ‘[[[UIDevice currentDevice] identifierForVendor] UUIDString]’?



    UIDevice *device = [UIDevice currentDevice];

    NSString *deviceId = [device.identifierForVendor UUIDString];

    deviceRegistration.deviceToken =;

    deviceRegistration.deviceId = deviceId;

    deviceRegistration.os = @"IOS";

    deviceRegistration.osVersion = device.systemVersion;


    deviceRegistration.os = @"OSX";

    NSString *deviceId = [self serialNumber];

    deviceRegistration.deviceId = deviceId;


Thanks this is helpful!