Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add statistic #121

Merged
merged 5 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions en/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
- [User Manual]()
- [About Billing](about-billing.md)
- [List of Services]()
- [Agora RTC](agora.md)
- [Yidun (NetEase)](neteaseyidun.md)
- [Location Kit(HMS Core)](hms-location.md)
- [Analytics Kit(HMS Core)](hms-analytics.md)
- [Ads Kit(HMS Core)](hms-ads.md)
Expand All @@ -16,6 +14,5 @@
- [Remote Configuration(AGC)](agc-remoteconfig.md)
- [Online Multiplayer Battles (AppGallery Connect))](hw-gobe.md)
- [Game Multimedia (AppGallery Connect)](hw-mmsdk.md)
- [Cocos SDKHub](sdkhub.md)
- [Google Play](sdkhub-plugins/google-play.md)
- [Vungle](vunglead.md)
- [Taobao Avatar SDK](taobaoavatar.md)

29 changes: 11 additions & 18 deletions en/about-cocos-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,39 +6,32 @@ Cocos Creator provides a **Service** panel in the **Menu bar -> Panel**, and dev

The **Service** Panel currently supports the integration of third-party services including the following:

- [Vungle ](vunglead.md)

- [Yidun (NetEase)](neteaseyidun.md)

- [Cocos SDKHub](sdkhub.md)

- [Location Kit (HMS Core)](hms-location.md)

- [Analytics Kit (HMS Core)](hms-analytics.md)

- [APM (AppGallery Connect)](agc-apm.md)
- [HUAWEI Account Kit(HMS Core)](hms-account.md)

- [Auth Service (AppGallery Connect)](agc-auth.md)
- [Push Kit(HMS Core)](hms-push.md)

- [Crash (AppGallery Connect)](agc-crash.md)

- [Remote Configuration (AppGallery Connect)](agc-remote.md)
- [In-App Purchases(HMS Core)](hms-iap.md)

- [App Messaging (AppGallery Connect)](agc-appmessaging.md)
- [Game Service(HMS Core)](hms-game.md)

- [App Linking (AppGallery Connect)](agc-applinking.md)
- [APM (AppGallery Connect)](agc-apms.md)

- [Cloud DB (AppGallery Connect)](agc-clouddb.md)
- [Ads Kit(HMS Core)](hms-ads.md)

- [Cloud Storage (AppGallery Connect)](agc-cloudstorage.md)
- [Cloud Functions (AppGallery Connect)](agc-cloudfunc.md)
- [Cloud Functions(AppGallery Connect](agc-function.md)

- [Remote Configuration(AppGallery Connect](agc-remoteconfig.md)

- [Online Multiplayer Battles (AppGallery Connect))](hw-gobe.md)

- [Game Multimedia (AppGallery Connect)](hw-mmsdk.md)

- [Agora RTC](agora.md)
- [Taobao Avatar SDK](taobaoavatar.md)

## Usage

Expand Down
5 changes: 4 additions & 1 deletion en/agc-apms.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@

### Version Update Description (Cocos Creator 2.x)

- Latest Version: v0.5.4_1.5.2.300
- Latest Version:[3.x] 2.1.6_1.6.2.300
- Improve internal implementation

- v0.5.4_1.5.2.300

- Add support for Game SDK.

Expand Down
7 changes: 6 additions & 1 deletion en/agc-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ Cloud Functions lets you run function code to respond to specific events, such a

### Version Update Description

- Latest Version:[3.X]2.1.3_1.9.1.300
- Latest Version:[3.X]2.3.3_1.9.1.301

- Improve internal implementation
- SDK upgrade to 1.9.1.301

- [3.X]2.1.3_1.9.1.300

- Upgrade the sdk version.

Expand Down
23 changes: 20 additions & 3 deletions en/agc-remoteconfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ Releasing new functions to all users at the same time may be risky. Remote Confi

### Version Update Description

- Latest Version: [3.x] 2.2.0_1.9.1300
- Latest Version:[3.x] 2.3.3_1.9.1.302
- Improve internal implementation

- SDK upgrade to 1.9.1.302

- Version: [3.x] 2.2.0_1.9.1300

- Update the SDK.

Expand Down Expand Up @@ -129,7 +134,7 @@ It is recommended to use this method to fetch and apply parameter values from th

|Parameter|Description|
|-|-|
|intervalSeconds|Interval for fetching data, the unit is seconds, default value is -1 for 12 hours.|
|intervalSeconds|The setting interval cannot be less than 1800 seconds. If the interval is less than 1800 seconds, the system will process it in 1800 seconds.|

**Example**:

Expand All @@ -151,7 +156,7 @@ Developers can also call the `fetch` method to get the `setRemoteConfigListener`

|Parameter|Description|
|-|-|
|intervalSeconds|Interval for fetching data, the unit is seconds, default value is -1 for 12 hours.|
|intervalSeconds|The setting interval cannot be less than 1800 seconds. If the interval is less than 1800 seconds, the system will process it in 1800 seconds|

**Example**:

Expand Down Expand Up @@ -316,6 +321,18 @@ let value: string = huawei.agc.rc.rcService.getCustomAttributes();
console.log("getCustomAttributes succeed: ", value);
```

### Set whether to allow the collection of user privacy information

`setEnableCollectUserPrivacy(enable: boolean): void`

Set whether to allow the collection of user privacy information, including chip type and HA user attribute information. The default value is true.

**Example**:

```JavaScript
huawei.agc.rc.rcService.setEnableCollectUserPrivacy(true);
```

## API Reference

Please refer to the [Remote Configuration - API Reference](https://service.cocos.com/document/api/modules/huawei.agc.rc.html).
Expand Down
8 changes: 7 additions & 1 deletion en/hms-account.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@

### Version Update Description

- Latest Version:[3.X] 1.0.3_6.11.0.300
- Latest Version:[3.x] 1.1.2_6.12.0.300
- Improve internal implementation
- Account information does not provide accessToken and account content

- SDK upgrade to 6.12.0.300

- [3.X] 1.0.3_6.11.0.300

- Update the SDK

Expand Down
5 changes: 5 additions & 0 deletions en/hms-ads.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ Ads Kit provides the Open Advertising Identifier (OAID) and install referrer cap

### Version Update Description

- Latest Version:[3.x] 1.0.2_13.4.68.300
- Improve internal implementation

- SDK upgrade to 13.4.68.300

- Latest Version:[3.x]0.0.5_6.11.0.301

- Update the SDK and add some functions.
Expand Down
7 changes: 6 additions & 1 deletion en/hms-analytics.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@

### Version Update Description

- Latest Version:[3.x] 2.2.1_6.10.0.303
- Latest Version:[3.x] 2.3.5_6.12.0.300
- Improve internal implementation

- SDK upgrade to 6.12.0.300

- [3.x] 2.2.1_6.10.0.303

- Upgrade the SDK version.

Expand Down
26 changes: 24 additions & 2 deletions en/hms-game.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ Game Service provides the following functions for your game apps, with which you

### Version Update Description

- Latest Version:[3.x] 0.0.4_6.10.0.300
- Latest Version:[3.x] 1.0.2_6.12.0.300
- Improve internal implementation
- new PlayersClient. SavePlayerRole interface, abandoned submitAppPlayerInfo interface
- Upgrade the SDK to 6.12.0.300

- [3.x] 0.0.4_6.10.0.300

- Android Version:com.huawei.hms:game:6.10.0.300

Expand Down Expand Up @@ -243,7 +248,7 @@ this.game.once(huawei.hms.game.API_EVENT_LIST.getAppIdCallback, (result: huawei.
this.game.getAppId();
```

#### Stores the information about a player in a game, such as the level and region.
#### [deprecated]Stores the information about a player in a game, such as the level and region.

`submitAppPlayerInfo (info: { area: string; rank: string; role: string; sociaty: string; }): void;`

Expand All @@ -260,6 +265,23 @@ this.game.submitAppPlayerInfo({
});
```

#### Save the player's character information in the game, such as area uniforms, character names, etc.

`savePlayerRole (info: { serverId: string; serverName: string; roleId: string; roleName: string; }): void;`

[References](https://developer.huawei.com/consumer/cn/doc/HMSCore-References/playersclient-0000001050121668#section14448819342)

示例

```TypeScript
this.game.once(huawei.hms.game.API_EVENT_LIST.savePlayerRoleCallback, (result: huawei.hms.game.ApiCbResult) => {
this.consolePanel.log(result);
});
this.game.savePlayerRole({
serverId: "123", serverName: "server1", roleId: "321", roleName: "role1"
});
```

#### Obtains the statistics of the current player, such as the session duration and rank

`getGamePlayerStats (isRealTime: boolean):void`
Expand Down
7 changes: 6 additions & 1 deletion en/hms-iap.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ With IAP, you can offer the following types of digital products and content with

### Version Update Description

- Latest Version:[3.x] 0.0.5_6.10.0.300
- Latest Version:[3.x] 1.0.3_6.13.0.300
- Improve internal implementation

- SDK upgrade to 6.13.0.300

- [3.x] 0.0.5_6.10.0.300

- Update the SDK

Expand Down
8 changes: 6 additions & 2 deletions en/hms-location.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,15 @@ If you are interested in a particular location, you can create a geofence called

### Version Update Description

- Latest Version:[3.x]1.0.1_6.12.0.300
- Latest Version:[3.x]1.0.5_6.12.0.300

- Improve internal implementation

- [3.x]1.0.1_6.12.0.300

- Update to 6.12.0.300

- Latest Version:[3.x]0.0.5_6.11.0.301
- [3.x]0.0.5_6.11.0.301

- Update the SDK and add some functions.

Expand Down
8 changes: 7 additions & 1 deletion en/hms-push.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ You can access Push Kit in the following modes:

### Version Update Description

- Latest Version:[3.x] 0.0.5_6.10.0.300

- Latest Version:[3.x] 1.1.2_6.12.0.300
- Improve internal implementation

- SDK upgrade to 6.12.0.300

- [3.x] 0.0.5_6.10.0.300

- Update the SDK

Expand Down
4 changes: 4 additions & 0 deletions en/hw-gobe.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ The client integrated with the online multiplayer battle service SDK sends vario


## Version Update
- Current Version: [3.x] 1.0.0_13.8.1.300

- Improve internal implementation
- Upgrade the SDK to 13.8.1.300

- Current Version: [3.x] 0.0.2_13.6.2.300

Expand Down
7 changes: 6 additions & 1 deletion en/hw-mmsdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@ Clients integrated with the Game Multimedia Service SDK input voice information

## Version Update Instructions

- Current version: [3.x] 1.0.7_1.12.1.300
- Current version:[3.x]1.0.12_1.12.2.300

- Improve internal implementation
- Upgrade the SDK to 1.12.2.300

- Version: [3.x] 1.0.7_1.12.1.300
- Fixed setting microphone callback error

- Version: [3.x] 1.0.6_1.12.1.300
Expand Down
9 changes: 2 additions & 7 deletions zh/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
- [服务面板操作指南](user-guide.md)
- [计费说明](about-billing.md)
- [服务列表]()
- [Taobao Avatar SDK](taobaoavatar.md)
- [声网(Agora RTC)](agora.md)
- [FrontJS](frontjs.md)
- [易盾(网易)](neteaseyidun.md)
- [定位服务(HMS Core)](hms-location.md)
- [分析服务(HMS Core)](hms-analytics.md)
- [广告服务(HMS Core)](hms-ads.md)
Expand All @@ -20,6 +16,5 @@
- [远程配置(AGC)](agc-remoteconfig.md)
- [联机对战(AGC)](hw-gobe.md)
- [游戏多媒体(AGC)](hw-mmsdk.md)
- [Cocos SDKHub](sdkhub.md)
- [Google Play](sdkhub-plugins/google-play.md)
- [Vungle](vunglead.md)
- [Taobao Avatar SDK](taobaoavatar.md)

25 changes: 11 additions & 14 deletions zh/about-cocos-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,16 @@ Cocos Service 是集成在 Cocos Creator 内的服务面板,其中提供了一

Cocos Service 目前支持集成以下服务:

- [Vungle](vunglead.md):通过全球最大的独立和隐私友好平台“一键变现”。
- [声网(Agora RTC)](agora.md):实时音视频。
- [FrontJS](frontjs.md):帮助游戏开发者快速定位和分析问题所在,改善用户体验,提升业务转化,减少用户流失。
- [易盾(网易)](neteaseyidun.md):提供游戏包体加固、反外挂一站式服务。
- [定位服务(HMS Core)](hms-location.md):采用 GPS、Wi-Fi、基站等多种混合定位模式进行定位,赋予您的应用程序快速、精准地获取用户位置信息的能力。
- [分析服务(HMS Core)](hms-analytics.md):基于开发者上报的用户行为和属性数据,提供多种分析能力。
- [性能管理(AppGallery Connect)](agc-apm.md):提供分钟级应用性能监控能力,收集应用性能数据。
- [认证服务(AppGallery Connect)](agc-auth.md):使应用快速构建安全可靠额用户认证系统。
- [崩溃服务(AppGallery Connect)](agc-crash.md):零代码快速集成,通过崩溃报告了解应用崩溃情况。
- [远程配置(AppGallery Connect)](agc-remote.md):应用可在线更改行为和外观,无需下载应用更新。
- [应用内消息(AppGallery Connect)](agc-appmessaging.md):基于用户使用情境发送上下文相关消息,增强用户粘性。
- [App Linking(AppGallery Connect)](agc-applinking.md):跨平台深度链接直达应用内内容,推动应用增长。
- [云数据库(AppGallery Connect)](agc-clouddb.md):安全可信的数据管理服务。
- [云存储(AppGallery Connect)](agc-cloudstorage.md):跨平台提供高效经济的文件上传下载服务。
- [云函数(AppGallery Connect)](agc-cloudfunc.md):事件驱动的函数计算平台,保证高可用与伸缩,让开发者便捷运行代码而无需管理服务器。
- [Cocos SDKHub](sdkhub.md):快速接入原生平台 SDK。
- [华为帐号服务(HMS Core)](hms-account.md)为您提供了简单、安全的登录授权功能,方便用户快捷登录。
- [推送服务(HMS Core)](hms-push.md)是华为提供的消息推送平台,建立了从云端到终端的消息推送通道。
- [应用内支付服务(HMS Core)](hms-iap.md)为App提供便捷的应用内支付体验和简便的接入流程。
- [游戏服务(HMS Core)](hms-game.md)是华为向您提供的能够快速开发游戏应用的服务。
- [广告服务(HMS Core)](hms-ads.md)依托华为终端平台与数据能力为您提供流量变现服务,帮助您解决流量变现的难题;同时为广告主提供广告服务,配合华为终端平台向用户提供个性化的营销活动或商业广告。
- [性能管理(AppGallery Connect)](agc-apms.md):提供分钟级应用性能监控能力,收集应用性能数据。
- [云函数(AppGallery Connect)](agc-function.md)是一项Serverless计算服务,提供FaaS(Function as a Service)能力
- [远程配置(AppGallery Connect)](agc-remoteconfig.md)提供在线的配置项管理能力,开发者可以在线更改应用的行为和外观,无需用户下载应用更新。
- [联机对战(AppGallery Connect)](hw-gobe.md)为多人联机游戏提供了房间管理、玩家匹配、队伍管理、消息通信等功能,具备优质的联网和服务端能力。
- [游戏多媒体(AppGallery Connect)](hw-mmsdk.md)是华为游戏中心推出的一款快速实现游戏内实时语音对讲和IM聊天(Instant Messaging,即时通讯)功能的服务。
- [Taobao Avatar SDK](taobaoavatar.md)开发者可以通过集成SDK,快速拥有虚拟角色的相关能力,使用已有的淘宝人生虚拟角色,用于游戏或软件的开发。
3 changes: 3 additions & 0 deletions zh/agc-apms.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
|支持创建自定义跟踪记录,监控应用在特定场景下的性能|借助性能管理 APM SDK,开发者可以:<br>1. 创建自定义跟踪记录来监控应用在特定场景,如用户登录或者屏幕加载场景下的性能。<br>2. 为自定义跟踪记录添加指标(如登录次数)和属性(如登录是否成功)。|

### 版本更新说明(Cocos Creator 2.x)
- 当前版本: [3.X]2.1.6_1.6.2.300

- 完善内部实现

- 当前版本:v0.5.4_1.5.2.300

Expand Down
5 changes: 3 additions & 2 deletions zh/agc-function.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@

### 版本更新说明

- 当前版本: [3.X]2.1.3_1.9.1.300
- 当前版本: [3.X]2.3.3_1.9.1.301

- 升级sdk版本。
- 完善内部实现
- SDK 升级到 1.9.1.300

- 0.5.0_1.4.1.300

Expand Down
Loading