Hi @samerhameed, this has worked for me recently
InstanceID.instanceID().instanceID { (result, error) in
if let error = error {
print("Error: \(error)")
} else if let result = result {
print("Remote instance: \(result.token)")
}
}