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

请问有没有要使用这个插件接入华为的防沉迷功能应该怎么做? #464

Closed
NicolasTseJ opened this issue Jan 23, 2024 · 16 comments
Assignees
Labels
high priority Must be focused on first requirement Requested features for our road map roadmap we have it on our roadmap waiting for confirmation The solution has been given

Comments

@NicolasTseJ
Copy link

找了一下好像没有相关的方法,没有搜到与防沉迷相关的方法名之类的

Copy link

Thank you for reporting this issue/advice.

We will get back to you as soon as possible.
Would you like to star our plugin to support us? ✨

@github-actions github-actions bot added the new label Jan 23, 2024
@alihan98ersoy alihan98ersoy added requirement Requested features for our road map roadmap we have it on our roadmap and removed new labels Jan 23, 2024
@alihan98ersoy
Copy link
Collaborator

In our plugin, we have Game Service:6.2.0.301. And in the SDK we have the related parts.
PlayersClientWrapper.cs & IPlayersClient.cs

But we don't have an example of how to use it. In our roadmap, we are planning to update the Game Service to the latest version. With this update, we can create a demo for it.

For now, you can refer to Game Trial to integrate the feature.

@NicolasTseJ
Copy link
Author

这个更新大概什么时候能完成呢?我们项目目前需要用到这个功能

@alihan98ersoy
Copy link
Collaborator

We plan to update by the end of February.

@NicolasTseJ
Copy link
Author

防沉迷相关的方法是在插件里面已经有了是吗?我是可以自己根据(Game Trial)实现的对吗?

@alihan98ersoy
Copy link
Collaborator

Yes, but this feature is not available."The Game Service SDK of version 6.8.0.300 or later provides the function of automatically detecting minors' played time."
resim

@NicolasTseJ
Copy link
Author

好的,我试试先,感谢

@NicolasTseJ
Copy link
Author

请问2.3.5对应华为的SDK是哪个版本,我按照官网的教程做了(playersClient.GetGamePlayer(true);),但是没办法弹出实名认证的窗口。

@alihan98ersoy
Copy link
Collaborator

I believe if the user already signed in there will be no display. did you write a debug? is the "IF" or "ELSE" condition triggering?
resim

If the problem is not solved, maybe you can send me the logs then I can check the logs.

@NicolasTseJ
Copy link
Author

这个是游戏试玩方法,已经被废弃了,而且它好像是试玩时间结束才会回调这两个方法。我需要的是当用户登录时,如果没有经过实名认证,就要弹出实名认证的窗口这个功能。该功能是否在当前插件版本是不支持的?目前2.3.5对应的是HUAWEISDK的V6.2.0.301版本吗?

@alihan98ersoy
Copy link
Collaborator

I will test and try to find a quick solution for you.

@NicolasTseJ
Copy link
Author

ok, thx

@NicolasTseJ
Copy link
Author

请问我在插件里面没找到这个方法(ResourceLoaderUtil.setmContext(this); // Set the game addiction prevention message context, which is mandatory.),是存在的吗?我看教程里面有说这个方法必须加

@alihan98ersoy
Copy link
Collaborator

Yes, there is no ResourceLoaderUtil. According to my tests, a few parts in SDK should be changed. Uploading GameServices to the latest version is a high priority for us.

@alihan98ersoy alihan98ersoy added the high priority Must be focused on first label Jan 25, 2024
@alihan98ersoy
Copy link
Collaborator

Hello, we have released the new version.

@alihan98ersoy alihan98ersoy added the waiting for confirmation The solution has been given label Feb 23, 2024
Copy link

Thank you for using our repository! We're glad we could help solve your issue. If you found our repository helpful, please consider giving us a star ⭐ on GitHub: https://github.com/EvilMindDevs/hms-unity-plugin

Your support helps us continue to improve our repository and provide valuable resources for others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high priority Must be focused on first requirement Requested features for our road map roadmap we have it on our roadmap waiting for confirmation The solution has been given
Projects
None yet
Development

No branches or pull requests

3 participants