RangersAppLog ReactNativePlugin
npm install rangers_applog_reactnative_plugin>
>
> 在使用 RangersAppLog SDK 前,你需要先注册DataRangers账号并且创建一个应用。
>
| 接口名 | 功能 | 参数 | 支持平台 |
|----------------------------|-----------------------------------|-------------------------------------------------------------|--------------|
| setUserUniqueId | 设置用户登录 Id | 参数1:string,可空。user_unique_id。 | iOS, Android |
| setHeaderInfo | 自定义header信息 设置用户公共属性 | 参数1:字典,可空。自定义header信息。 | iOS, Android |
| onEventV3 | 生成自定义埋点 | 参数1:string,非空。事件名。 参数2:字典,可空。事件参数。 | iOS, Android |
| getDeviceID | 获取did | 参数:无 返回:str。 | iOS, Android |
| getAbSdkVersion | 获取全部客户端和服务端已曝光参数 | 参数:无 返回:str | iOS, Android |
| getABTestConfigValueForKey | 获取AB测试的配置,若不存在返回nil | 参数1: str, ABTest配置的key 返回:str或nil | iOS, Android |
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
测试时:
name 改为 @dp/rangers_applog_reactnative_plugin
publishConfig 的 url 请使用:https://bnpm.byted.org/
正式对外发布时:
name 改为 rangers_applog_reactnative_plugin
publishConfig 的 url 请使用:https://registry.npmjs.org/