Question

Is it possible to make a custom URL for an icon on the iOS home screen? Or at least have a way for the user to edit the URL themselves?

UPDATE: To be more specific, here's what the client said:

"Because of our use of authentication, the URL of the landing page that [website] takes you to changes to a long URL with a session ID. Right now, when I use the Add to Home Screen function, it associates the icon with the long URL which, because of the session ID, won't work after a couple of days. Is there any way to change the URL to [website] (our stable and persistent URL) after or before the Add to home screen function is invoked"

Also, the website isn't a web app, so I'm not sure if web app things would apply here.....?

Was it helpful?

Solution 5

This answer is no longer valid.


No, it's not possible to do this because of security constraints. You need to handle those expired session IDs on the web application side - it's usually done with a redirect to the authentication page, most web frameworks should do this out of the box for you.

Related: Can the url for the "Add to home screen" on iPhone Safari be customized?

OTHER TIPS

I just tried this on the iPhone 6.

  1. Go to Settings and turn Airplane Mode to ON
  2. Go to Safari and type in the address you want to have an icon for
  3. Click Go. The page will fail to load, but the address will stay the same.
  4. Click the AirDrop icon next to the URL entry bar (landscape mode) and click the + button.
  5. Change the name of the site to whatever you want the icon caption to be
  6. Go to Settings and turn Airplane Mode to OFF

If you install the iPhone Configuration Utility, you can make custom icons on the home screen with custom URLs (including app URL schemes as long as you're OK with going through Safari first). It does not require jailbreaking or a connection to the Internet.

bcampolo’s solution worked on my 8 plus ios 14.5. I had to tweak it a bit & didn’t use airdrop. I turned on airplane mode. Pasted the URL in safari - hit go - (didn’t load obviously) then hit the share icon (up arrow w/square) - add to Home Screen - (and now the URL is the correct one instead of defaulting to the websites main page) erased the title “cant load page” (said something to that affect) typed in title of the icon I wanted - at this point icon thumbnail is white - Turned airplane mode off - hit the Home Screen icon I just made…. And it works!!! It even changed the icon’s pic from white/blank to the website’s correct image/thumbnail.

Yes, you can create custom URL and icon with the help of .mobileconfig file.. there is a trick, First create mobileconfig file with the of "Apple Configurator 2" and link it with your html or web page such as a button.. If need any help then please let me know...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top