Closed matiaz closed 2 years ago
Agent comment from Anders Lund in Zendesk ticket #8273:
Hi there,
I'd like to look into this a bit more, for privacy reasons, would you mind reaching out to support@getstream.io with you app ID? Would you also mind providing screenshots of your client-side implementation and the accompanying error?
Closing due to inactivity. Please let us know if you're still seeing this issue!
What did you do?
// Setup a shared Stream Client.
Client.config = .init(apiKey: "<#ApiKey#>", appId: "<#AppId#>")
// Setup a Stream user, when your user was logged in.
Client.shared.setupUser(token: token) { _ in
// Do all your requests from here. Reload feeds and etc.
}
What did you expect to happen?
The thing to actually work
What happened instead?
GetStream Environment
GetStream version: pod 'GetStream', '2.2.2' Xcode version: Xcode 12.3 Swift version: 5 Platform(s) running GetStream: iOS macOS version running Xcode: Big Sur
Additional context
I think that your documentation is completely out of date, can't make this thing to work.
I also tried this:
// import GetStream
// Setup Stream client (server side)
let client = Client(apiKey: "YOUR_API_SECRET", appId: "APP_ID", token: "FEED_TOKEN")
You get:
'Client' initializer is inaccessible due to 'private' protection level
gz#8273