This is the my code to intialize the comet chat but this not working what is the wrong with this cxode
override func viewDidLoad() {
super.viewDidLoad()
let cometChat : CometChat = CometChat();
let licenseKey: String = "COMETCHAT-xxxxx-xxxxxx-xxxxx-xxxxxx"
let apiKey: String = "xxxxxxxxxxxxxxxxxxxxxx"
CometChat().initializeCometChat("http://www.gamegods.com", licenseKey:licenseKey, apikey:apiKey, isCometOnDemand:true,
success: {(response) in
print("intialized succesfully")
},failure:{(error) in
print("intialized succesfully")
})
}
ERROR-
erminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'initWithAPIKey Exception : Invalid API key format'