当前位置:网站首页>Before the login welcome bar pops up, switch the game to the background, and then switch back to the game after the welcome bar pops up. Huawei anti addiction pop-up does not appear, and you can direc
Before the login welcome bar pops up, switch the game to the background, and then switch back to the game after the welcome bar pops up. Huawei anti addiction pop-up does not appear, and you can direc
2022-07-18 17:00:00 【Huawei Developer Forum】
Problem description
Our game integrates Huawei game anti addiction function , Submit audit , Rejected :“ Your game does not limit the time to provide services to minors ”.
Our game is set to automatically login , That is, enter the game and actively call the Huawei login interface , After logging in successfully, you can directly enter the game . My own test of anti addiction is effective , That is, after the minor account is successfully logged in , Anti addiction pop-up window can pop up , At this time, you can prevent underage players from entering the game .
Under the guidance of Huawei's operation , Find the specific recurrence scenario provided by the audit :
stay Interactive center feedback , Just indicate your problems and needs .
Feedback entry : land AGC- At the small bell in the upper right corner of all pages .
The audit test steps are , When entering the game , Before the login welcome bar pops up ( Or before the anti addiction pop-up ), Cut the game to the backstage , After the Huawei login welcome bar pops up on the mobile interface , Then switch back to the game , At this time, there is no Huawei anti addiction pop-up window on the interface , But directly into the game , It seems that the anti addiction pop-up window was stuck when cutting backstage , So as to bypass anti addiction .
Problem analysis
I will follow Huawei Official documents Check our code for vulnerabilities , Integrated anti addiction requires attention to the following :
Register in the initialization interface to realize anti addiction callback OnExit();
Call after successful login getCurrentPlayer/getGamePlayer Interface to get player information , Otherwise, anti addiction will not take effect .
Check code , The above two points meet the requirements .
Then code debugging found , Cut to the background scene , Do not pop up the anti addiction pop-up window , There is no way to go to the logic of quitting the game when it is initialized , So that anti addiction can't stop minors from entering the game .
Contact Huawei technical support ( can Bill of lading contact ) Help solve the problem . Technical response , Game cut to backstage , At this time, because you can't get activity, So you can't pull up the anti addiction pop-up , You can no longer control players to exit the game through the pop-up window .
Huawei requires , When calling the login interface (silentSignIn or signInIntent) After success , To be called getCurrentPlayer/getGamePlayer Interface to get player information playerID/openID, After success , Before entering the game . In the scenario of audit test , Switch front and background operations , call getCurrentPlayer/getGamePlayer Interface , I can't get playId/openId Of , The game should prohibit players from entering .
The conclusion is : Control players to enter the game , It depends on whether you can get playId/openId To judge , Not just based on the anti addiction bullet box .
Problem solving
According to the technical reply , We are getCurrentPlayer The interface failure callback prompts the user that the player information acquisition failed , And add logic that forbids players from entering the game , Problem solving .
边栏推荐
- Postgresql-14.4-source code reading 02 readbuffer_ Common - update this post later - it's a big read
- 从IT视角审视企业经营,B2B行业CIO谈如何从“成本中心”转到“增长中心”?
- 【golang学习笔记】接口(interface)
- 反向加薪,这是什么操作?
- 1.5.2 array
- 【付費推廣】常見問題合集,基礎推廣操作FAQ 2
- 从 URL 输入到页面展现到底发生什么?
- The use of finally in JS
- How to choose MySQL database storage engine? Let's take a look at the performance test
- An expert, Alibaba biggie quit and brought out the internal "high concurrency system design" learning manual
猜你喜欢

Error yolov5 PT to onnx error

内行,阿里大咖离职带出内部“高并发系统设计”学习手册

JESD204B调试笔记(实用版)

Create and generate WiFi QR code mobile phone scanning link

No 996, no involution, LETV has a "fairy day"?

反向加薪,这是什么操作?

An expert, Alibaba biggie quit and brought out the internal "high concurrency system design" learning manual

【学习记录】暂时取消Tpro的控制权(简易)

【手把手带你学UVM】~ 记录遇到的一切错误

重装mysql后initializing database错误
随机推荐
Scala 基础 (二):变量和数据类型
1.5.1 无限循环
module ‘urllib‘ has no attribute ‘urlretrieve‘
vscode 1.69变化与关注点(三路合并/终端集成等)
【机器学习】 逻辑回归原理及代码
Linked list - [delete all duplicate elements]
antd的工具函数getPrefixCls,获取公共前缀
历史上的今天:Mozilla 基金会正式成立;Enigma 密码机的首次工作;任天堂推出 FC 游戏机...
Vscode 1.69 changes and concerns (three-way merge / terminal integration, etc.)
重装mysql后initializing database错误
1.6 method
从 URL 输入到页面展现到底发生什么?
MongoDB慢查询与索引
Error yolov5 PT to onnx error
Error in v-on handler: “ReferenceError: Toast is not defined“
Implementation of distributed cronab based on cron library extension
OSPF(Open Shortest Path First开放式最短路径优先)防环以及计算错误带来的组网应用隐患
考研人暑期行为大赏top5
[record of question brushing] 12 Integer to Roman numeral
1.4 流程控制语句