PWA add to home screen does not work as expected - progressive-web-apps

I've started with PWA, I want to add home screen icon to my app, but it's added to apps menu instead of home screen

It's usually added to BOTH app and home screen.
But many times it will place the icon on the second home screen for me.
Even if there is a spot open on the first.

Related

unable to add PWA app to home screen, error Home Screen Layout Locked

I have a PWA app which works fine on all phones including my phone which is a MI phone. I have a download app button which fires the installation banner.
But on one of other Samsung phone, install button doesn't work. It doesn't fire banner at all. And if I try to go manually by selecting "Add To Home Screen" from Menu, it shows instalation pop up but after clicking add displays error.
Can't Add "App Name" To Home Screen. Home screen layout locked.
Please help.

How to create a home screen icon of URL, which is getting redirected

I have a google drive link on which when I tap, it shows me the file.
Now the problem is when I make an icon of it on my home screen, it stops working after some time.
So, How do I create an icon of such a link, which gets redirected to a different URL.
I came across such a scenario and following steps worked for me.
Go to screen where the google drive link is present.
Now Go to airplane mode.
Tap on google drive link.
Tap on "Add to Home screen".
Done!!!

How to do a clean app restart (iOS 6.1)?

I realized an app for iOS. It all goes well, works like a charm... until the device is restarted! When I manually close the app (for example, on my iPad I slide four fingers upwards, visualize the menu showing the app "alive", hold the icon of the app and press the red badge, terminating the app) and I try to open it again this is what happens to me:
First the app remains stuck on the last page visited before closing the app (I cannot tap buttons on the tab bar or do anything else)
Then, the only thing I can do is tap the Home button and try to open the app again
At this point all I get is a perfectly black screen
The restart seems to be not a real restart, or not to be clean. This is totally meaningless to me. Am I missing something?
EDIT :
Remove your application by press Hold down Application iCon From simulator/device
And then re-install app. and check it worked or not ???
If your view display with black screen then give it backGround Color redColor or as u wish.
Its iOS app natural behavior only.
When you press Home button on device, While running any iOS app it goes in background but the The app is still in background and its save application's state.
So if you Tap agin app's icon you will get the last screen where did you leave it.
Now, if you want to Restart the app from initial you need to clear it.
Go this way.
Just double press device's Home button you can see running apps on bottom like this
For delete particular app, you simply press and hold, you can see red (-) icon on app
just click on that and you are on way.
Now press Home button and Go to Start app!!
The problem is that Xcode, when it runs an app, attach to it a debbuger which prevents it to close normally and causes problems in the reopening. Thank you very much to this guy who pointed out the problem: https://stackoverflow.com/a/15176137/1272105

Directly add Clip icon to Home Screen of an iphone when webapp is first accessed

I want to know that is there any way that I can add my webapp's clip icon to the Homescreen of an iPhone directly when user first acessess my webpage through the Safari ?
No, the only way your webapp can be added to the user's home screen is if he/she manually does it.

Can i set the default page for a web-capable site added to the home screen?

I'm developing a mobile site, with web-capable settings for iphone.
when the site is added to the home screen, it launches from a specific page
(ie. the one the user whas on when adding to the home screen)
is it possible to set your home page (or any) as default to open with the home-screen button?
thanx!