DurgerKingBot
DurgerKingBot copied to clipboard
Implement custom loading for IOS and Android
Hello how to implement animation spinner/loader instead of blank page on startup.
There is an spinner/loader in desktop telegram (animated robot): @asmico_attach_bot https://github.com/sacredneobi/DurgerKingBot/assets/11719983/2682434e-e8dd-4ef9-b313-b7c0c239eaa9
The blank page appears for a second when you start webapp on iOS or Android. How to display spinner from the beginning?
Like this: @DurgerKingBot https://github.com/sacredneobi/DurgerKingBot/assets/11719983/f6308585-3d45-4935-adab-694210ccee40
There is no empty screen before the loader animation when it starts.
At startup, there will still be a blank page, since this is a trite web. You can add a download icon and specify a telegram style to minimize this effect. It also strongly depends on the cache on the device, if the page has already been loaded and the client cache is correctly configured, then the page loads much faster and the white screen at startup may not be noticeable
What do you mean when you say to add icon? Is it a telegram option to add icon to the webapp (via fatherbot) or i need to do that on the starting page in my app?
What is it a telegram style?
Only in your web app on main page, better if you add in index.html
Что вы имеете в виду, когда говорите добавить значок? Есть ли возможность телеграммы добавить значок в веб-приложение (через бот-отца) или мне нужно сделать это на стартовой странице в моем приложении?
What is it a telegram style?
Telegram object. In your app access to telegram style property like that "--tg-text, --tg-bg" and other
@sacredneobi thank you for explanation!