Tag: create react native app

是否有可能将GetStream.io与使用Create React Native App构build的React Native应用程序集成而不popup?

我正在尝试使用getstream.io的客户端function(特别是提要和实时更新),在使用react-native构build的本机应用程序上构buildstream。 当我尝试使用从我的服务器传递的令牌在JavaScript代码中初始化客户端时,出现错误: [Error: Missing app id, which is needed to subscribe, use var client = stream.connect(key, secret, appId);] 但是,当我添加秘密和appId(为了testing目的,我会非常谨慎的部署像这样),我得到的错误: [Error: You are publicly sharing your private key. Dont use the private key while in the browser.] 有没有一种方法来获得运行使用世博会的客户端版本(创buildReact本机应用默认),而不从popup的创build反应本机应用程序?