Skip to main content

Floating Button

The native SDK shows a floating account bubble automatically after login — same as the native Android/iOS SDKs. Tapping it opens the account dashboard (profile, top-up, logout) without any game code.

Restore it if the player hid it

import { AlogameSdk } from 'alogame-sdk';

await AlogameSdk.showFloatingButton();

Wire this to a "Show account" entry in your own in-game menu so players can always bring the bubble back, even if they dismissed it for the session.

Hide it

await AlogameSdk.hideFloatingButton();

Use this if a scene needs the full screen (e.g. a cutscene or minigame) and you want to temporarily suppress the bubble.