我正在尝试使用 getstream.io 的客户端功能(特别是提要拉取和实时更新)在使用 react-native 构建的本机应用程序上构建流。当我尝试使用从服务器传递的令牌在 javascript 代码中初始化客户端时,出现错误:
[Error: Missing app id, which is needed to subscribe, use var client = stream.connect(key, secret, appId);]
但是,当我添加秘密和 appId 时(出于测试目的,我会非常警惕这样的部署)我收到错误:
[Error: You are publicly sharing your private key. Dont use the private key while in the browser.]
有没有办法让客户端版本使用 Expo(Create React Native App 默认)运行而不从 Create React Native App 弹出?