I am receiving this error:
Thread 1: “[<Backendless.Channel 0x280b367f0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key objectId.”
When I try to publish to default channel (or any channel). Here is code:
Backendless.shared.messaging.publish(channelName: savedT.objectId!, message: "New Thread: \(savedT.threadName)", responseHandler: { messageStatus in
print("Thread has been created")
}, errorHandler: { fault in
print("Error: \(fault.message ?? "")")
})
and for default channel:
Backendless.shared.messaging.publish(channelName: "default", message: "New Thread: \(savedT.threadName)", responseHandler: { messageStatus in
print("Thread has been created")
}, errorHandler: { fault in
print("Error: \(fault.message ?? "")")
})