You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I would like to say the app looks awesome!
I ran into a compilation issue on the way to work that I thought I would file here.
Got identity values were nil.
func login() {
TwilioChatClient.setLogLevel(.debug)
// Fetch Access Token from the server and initialize Chat Client - this assumes you are running
// the PHP starter app on your local machine, as instructed in the quick start guide
let deviceId = UIDevice.current.identifierForVendor!.uuidString
let urlString = "\(tokenURL)?identity=\(identity)&device=\(deviceId)"
TokenUtils.retrieveToken(url: urlString) { (token, identity, error) in
if let token = identity {
// Set up Twilio Chat client
TwilioChatClient.chatClient(withToken: token, properties: nil, delegate: self) {
(result, chatClient) in
self.client = chatClient;
// Update UI on main thread
DispatchQueue.main.async() {
self.navigationItem.prompt = "Logged in as \"\(self.identity)\""
}
}
} else {
print("Error retrieving token: \(error.debugDescription)")
}
}
}
The text was updated successfully, but these errors were encountered:
Hello, I would like to say the app looks awesome!
I ran into a compilation issue on the way to work that I thought I would file here.
Got identity values were nil.
The text was updated successfully, but these errors were encountered: