"Recently, my team integrated the Game Service SDK and APIs related to the floating window to their app according to the official documentation.
But when they packaged and ran the app, the floating window was not displayed normally. How can I fix it?"
The official documentation give instructions on how to integrate the floating window function:
For Huawei devices running EMUI 9.1.1 or later, you do not need to integrate any SDK, the game floating window is automatically displayed.
For Huawei devices running EMUI earlier than 9.1.1, you need to integrate the floating window function following instructions at the preceding link.
If the following floating window is displayed, the integration is successful.
If the floating window cannot be displayed, perform a check based on the following items.
init
API must be called before calling APIs related to the game floating window.showFloatWindow
API in the onResume
method and call the hideFloatWindow
API in the onPause
method. For details, please refer to the official documentation.hideFloatWindow
API can be called only after the showFloatWindow
API has been called to display the game floating window on the game UI.For Detail,pls kindly refer:What Can I Do When the Floating Window Is Not Displayed Normally in My Game?