GetStream / stream-swift

Swift client for Stream API
https://getstream.io
BSD 3-Clause "New" or "Revised" License
35 stars 26 forks source link

The Stream Feed Client didn't setup properly. You are trying to use it before setup the API Key. #32

Closed matiaz closed 2 years ago

matiaz commented 3 years ago

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?

The Stream Feed Client didn't setup properly. You are trying to use it before setup the API Key.

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

shodgetts commented 3 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?

b-onc commented 2 years ago

Closing due to inactivity. Please let us know if you're still seeing this issue!