Unity WebGL Reload Loop Issue on Telegram MiniApp

Unity WebGL keeps reloading continuously when loaded via a miniapp on Telegram. On the initial loading screen, it reaches the end, then restarts the loading process again. Please help me find out the reason of this issue.

Check the logs, if any.

Given the term “miniapp” I would tend to think the app is too resource-heavy, or the environment is too restrictive for Unity WebGL builds to work in. Try with an empty scene from an empty project.

1 Like

My project is over 300MB. When I try the mini app on an Android device, it works fine. But on iOS, it keeps restarting the loading process. An empty project works fine on both Android and iOS.

iOS has strict memory limits. For regular WebGL apps in the browser you can get to 500 MB memory usage if you’re lucky. I suppose with this likely being embedded within Telegram you have less memory available. Try to find the limit and then make sure the app stays reasonably below it, like at most 80%.

1 Like

Hmm I think this is telegram strict memory. Because when I run game with safari, it work.