Optimize rewards and initialization with best practices for earn rates, withdrawal limits, and SDK failures.
Limit reward frequency
Scale difficulty or rarity
Check user withdrawal limits
ZBDController.Instance.GetBalance
to retrieve the user’s current balance and withdrawal cap. Adjust the reward flow based on this data.ZBDController.Instance.Init
function can take a few seconds to complete, so it’s recommended to call it as early as possible ideally when your game first launches. Keep the instance alive using a singleton or a DontDestroyOnLoad
object that persists across scenes.
In most cases, the SDK initializes successfully. However, initialization may fail due to network issues or security checks, for example, if the user is on a VPN or proxy. When this happens, Init
will return false
.
To ensure a smooth user experience, you should still display a call-to-action button that triggers ZBDModalController.Instance.ShowModal(). This gives users the opportunity to:
Understand why initialization failed
Retry sign-in through a button provided in the modal
View their support ID and contact ZBD support for further assistance