Skip to main content

FAQ

FAQ

Q: How do I port a WeChat game to Tudada?

If your existing WeChat game uses the wx object, the SDK automatically proxies the wx object, so most APIs will work without any code changes. However, WeChat-specific APIs that are not supported by TudadaSDK may not function.

Note: wx compatibility is a legacy feature. After porting, we recommend gradually transitioning to direct TudadaSDK calls. Only previously registered APIs are exposed on the wx object; newly added APIs are only available through TudadaSDK.

Q: What happens if I call an API before SDK initialization?

Calling an API before TudadaGameSDK.waitForReady() completes may cause unexpected behavior. Always execute game code after waitForReady() has completed.

Q: What is the difference between Storage and TudadaStore?

  • Storage (setStorage/getStorage): Stored locally on the device. Data is lost when the app is uninstalled. Maximum 10MB.
  • TudadaStore (getTudadaStore): Stored in the cloud. Data persists even when switching devices. Maximum 2KB per value.

Q: What does the isEnded value mean for rewarded ads?

If result.isEnded returned by showRewardedAd() is true, the user watched the ad to completion and should receive a reward. If false, the user closed the ad early. When using the legacy createRewardedVideoAd, check res.isEnded in the onClose callback.