DurgerKingBot icon indicating copy to clipboard operation
DurgerKingBot copied to clipboard

Implement custom loading for IOS and Android

Open rsmything opened this issue 1 year ago • 6 comments

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.

rsmything avatar Jun 28 '23 04:06 rsmything

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

sacredneobi avatar Jun 28 '23 07:06 sacredneobi

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?

rsmything avatar Jun 28 '23 09:06 rsmything

What is it a telegram style?

rsmything avatar Jun 28 '23 10:06 rsmything

Only in your web app on main page, better if you add in index.html

Что вы имеете в виду, когда говорите добавить значок? Есть ли возможность телеграммы добавить значок в веб-приложение (через бот-отца) или мне нужно сделать это на стартовой странице в моем приложении?

sacredneobi avatar Jun 28 '23 11:06 sacredneobi

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 avatar Jun 28 '23 11:06 sacredneobi

@sacredneobi thank you for explanation!

rsmything avatar Jun 28 '23 14:06 rsmything