FeatureProbe Client Side SDK for JavaScript. Contribute to FeatureProbe/client-sdk-js development by creating an account on GitHub.
部分手机报错,目前有OPPO R11s 安卓系统8.1.0 、iOS 12.4.1 官方jssdk示例 https://github.com/FeatureProbe/client-sdk-js/blob/main/example/index.html 就能复现 Some mobile phones report errors. Currently, OPPO R11s has Android 8.1.0 and iOS 12.4.1 The officia
第四步:在 App.js 中引入 FeatureProbe SDK 并初始化,其中 clientSdk 需要回到 FeatureProbe 平台上复制。 AI检测代码解析 import { FeatureProbe, FPUser } from "featureprobe-client-sdk-js"; const user = new FPUser(); const fp = new FeatureProbe({ remoteUrl: "https://featureprobe.io/server"...
if (fpClient.boolValue(YOUR_TOGGLE_KEY, user, false)) { // Do some new thing; } else { // Do the default thing; } 我们提供如下语言的SDK: 💻 服务端SDK Java SDK Rust SDK Golang SDK Python SDK by @HeZean Node.js SDK by @HeZean 📲 客户端SDK Javascript SDK Android SDK iOS...
FeatureProbe Server 发现开关更新后,发送事件给关心这个开关的连接,对端的 SDK 收到事件,触发一次开关拉取。这里面能做的优化是直接下发开关的值,因为 Server SDK 和 Client SDK 的处理逻辑不同,我们放到下个迭代优化。 如何发现变化:开关的规则是存储在 FeatureProbe API 服务中的,目前 FeatureProbe Server 通过...
if (fpClient.boolValue(YOUR_TOGGLE_KEY, user, false)) { // Do some new thing; } else { // Do the default thing; } 我们提供如下语言的SDK: 💻 服务端SDK Java SDK Rust SDK Golang SDK Python SDK by @HeZean Node.js SDK by @HeZean 📲 客户端SDK Javascript SDK Android SDK iOS...
Import FeatureProbe SDK in your app, and check the Feature Toggle status in your code like the following pseudo-code: FPUseruser=newFPUser("user_id","user_name","user_email");if(fpClient.boolValue(YOUR_TOGGLE_KEY,user,false)) {// Do some new thing;}else{// Do the default thing;...
if(fpClient.boolValue(YOUR_TOGGLE_KEY,user,false)) {// Do some new thing;}else{// Do the default thing;} 我们提供如下语言的SDK: 💻服务端SDK Java SDK Rust SDK Golang SDK Python SDKby@HeZean Node.js SDKby@HeZean 📲客户端SDK ...