My website's apple touch icon won't update on my iPhone - iphone

I recently added apple touch icons to my website. When I add the site to my favorites on my iPad or my wife's 4S it uses the icon. I think that's only because I had never bookmarked the site on those devices before.
On my iPhone, I had previously bookmarked the website in my favorites and it used the generic first number/letter of the website's name as the touch icon. Now that I've got touch icons on there, I can't get it to use them. I've tried clearing the website data on Safari on my phone, closing the browser and reopening it, even shutting off and restarting the phone. No matter what I do, it still uses the generic touch icon. Is there anything I can do to get it to update?
Here's the website: 3to1video.com

I just bookmarked it on my iPhone and added to the home screen and can see the Icon. It did take a while(2s) to get the icon.
Try and see if you get it with a faster web connection and wait for the icon to appear before saving it.
Also Try adding it as a home screen icon and see if that works.
Nice site btw.

Okay, I finally got it to work. It had to do with where in the header the
<link rel="apple-touch-icon" href="apple-touch-icon-57x57-precomposed.png" />
was located. I'm using Squarespace and I had to put it in the header section on the main page rather than the header section of the code injection. Not sure exactly why that made it work in this one instance, but at least it's fixed.

I got it to work too, for my website.
I have an iPhone 6. The deal is, when you want the bookmarks, the favorites, and the Home Screen to work, but you already had favorites before, you have to :
RESET your iPhone
Just clearing all website data will not work.

Related

smart app banners not working iOS

I have wrote this code in HomePage of my website, I am using iOS 6.1.3 in my iPhone 4s
when i access my website in safari initially a banner with loading appears on top of the screen then after some time (means after loading full website) banner gets disappear :(
here is the code i have written in my website,
<meta name="apple-itunes-app" content="app-id=68924633, affiliate-data=myAffiliateData, app-argument=https://itunes.apple.com/gb/app/bi/id68924637?mt=8&uo=4">
Thanks in advance.
I had same issue, but it was because the application is only available in US and I'm developing from Colombia. So, check if you are connected to some VPN or your itunes account is from another region.
I connected my iphone with an US vpn and changed the region of my account and it worked.
Hope it helps!
This took a while to work out, but once you have dismissed the popup, it will NOT return. So if your having issues, try on a different phone. Resetting the cache or using private browsing wont help either, as its not stored in cache.
<meta name="apple-itunes-app" content="app-id=689246337" />
should be sufficient for your needs
Could be several reasons:
- Your network connection not allowing you to access the apple's appstore, to check this, just open appstore with your phone and see whether it works or not.
- Your apps is not available in the appstore of the country you're connected to, to check this, open appstore from your iphone, and then look for your apps there.
Cheers

iPhone - Change icon of the app programmatically at runtime

I can read that changing the app icon programmatically at runtime is not possible, at least since iOS 3.0.
But... I regulary can see on "App" websites apps that can put icons on the springboard. The first I remember is that kind of app that you give a friend's picture from your album, and it creates an icon so you can call him just clicking on that icon:
http://itunes.apple.com/fr/app/speedtouch-the-best-home-screen/id378360978?mt=8
http://itunes.apple.com/fr/app/desktop-shortcut/id421701004?mt=8
http://itunes.apple.com/fr/app/appbutler-app-organizer/id327391626?mt=8
http://itunes.apple.com/fr/app/tap4music/id365578914?mt=8
So I guess, is it still impossible to change the app icon programmatically at runtime?
Update
Apple have changed this, you can do this now: https://developer.apple.com/documentation/uikit/uiapplication/2806818-setalternateiconname
Original Answer
What you're thinking of here are WebClips, which are basically shortcuts to websites on the home screen. An actual application cannot change it's icon at runtime, as it's defined in the static Info.plist file.
The only exception to this rule is Newsstand applications.
This is now possible in iOS 10.3 using the UIApplication.setAlternateIconName(_:completionHandler:) API.
See my answer to this question: https://stackoverflow.com/a/44966454/233602
Changing your actual icon (other than, e.g, badging) would require changing the app bundle. I'm pretty sure that you don't have write access to the bundle, and in any event this should change the code signature, causing the OS to prevent launching.
So, no. Apps can put links to web sites, but not change their own app.

iOS Hiding Elements on Screenshot

I've extensively searched the web, and everything I've found suggests that I can use 'applicationDidEnterBackground' to detect that a screenshot is about to be taken, hide the relevant controls, and then show them again in 'applicationWillEnterForeground'.
Circumvent screenshot for iOS 4
Unfortunately, I can't seem to get this message to be sent to my app when I take a screenshot on the device. I've even created a brand new template app, and tried that, and they are still not sent.
The only thing I can think of is that I'm running iOS 5.0.1 on my device, and all of the web pages I've found have referred to iOS 4.
Can anyone verify they have it working on iOS 5, and if so, what do I need to do to get it working in my app?
Please help.
The srceenshot talked about in the thread you mentioned is the one used when app is send to the background when the user presses the home button.
It is the screen that the user will see when you start the app when it is already running.
You arre talking about the screenshot when the user is pressing the home and power button are pressed at the same time.
The screenshot with this methods (home + power button) can't be detected by my knowledge.

iphone, add home screen icon automatically

is it possible to have an icon on the iPhone home screen, programtically without user doing it. I mean , when you visit Youtube on your iPhone, it asks you to add a home screen button, which you click and then it takes you directly to the youtube page. I need to know that if it's possible to add a home screen button automatically , without even asking the user to add it.
Short answer - No.
Little longer answer - if sites will have rights without user permission add web-apps on springboard, allow location services and so on. This is mess... Thats why you can't do such thing due to privacy & permissions.
Maybe on jailbroken iOS, but not sure about that.
No, you cant have the shortcut for the home screen. This link will assure you that.
However, there's a slightly related solution.

Can I disable Home Button on my App? (full screen browser kiosk mode)

I have to put a lot of iPads on a stantd on a tourist fair to show our web, and we don't want that people can use these iPads to play/enter facebook/etc. Is for this that I was searching an application that put the iPad on kiosk mode to show fullscreen our web, but that's ridiculous if the user can press home button an go to springboard...
Is for this that I start to develop a fullscreen browser without address bar, only show a URL that is selected programatically, and I think to deploy this app on our iPads (we have a developer account), but we have the same problem: if the user press home button, he can select Safari and enter to any website.
In conclusion, we need to disable home button to hold the user on our website (I know that if press and hold home button + power button, iPad reboot, but the power button will be disable physically on the stand), and I also know that this app will not be approved by Apple, but as I said before, this app will be only to the fair stand.
Thanks.
Four years after, I found the response.
No, you cannot disable the home button. (And thank Apple for that. Who knows how many people would believe that their app is so fantastic that people ought not stop using it ever.)
Why do you need to disable the home button anyway? Why not build a stand for the iPad that blocks access to the home button?
Could you not use the parental controls to restrict/prevent access to Safari, Mail app's etc?
On iPad,
Settings > General > Restrictions
You can then easily remove app's such as Safari from the ipad's springboard, and to enable access requires a code (which you set) so no one would be able to access default app's that you don't want them to :)
Of course people would still be able to exit your app by pressing the home button, although they would not be able to do anything, and you can even stop them from deleting apps through the restrictions settings.
The only way to prevent exiting via the home button would be to physical stop people from pressing it by having the stand cover it over.
There are companies that make specific products for this type of thing. Here is a write up a couple (they are not cheap)...
http://www.tuaw.com/2010/04/26/ibracket-turns-your-ipad-into-an-ikiosk/
Steven
Probably too late for the OP but for anyone else trying to do this then see my answer here Lock-down iPhone/iPod/iPad so it can only run one app
I had been trying to do the same use case and pretty much everyone on stack overflow is saying it's not possible. Turns out that it is.
More than 4 years after, I found the answer, haha.
I'm not sure since when, but now we can block to use only one app from Settings > General > Accessibility > Guided Access
After that, we can do triple tap with our app opened, and it will be locked.
Also, we can use Apple Configurator to "Lock to App", but this way required to install a profile in the iPads (it wouldn't be a problem four years ago...).
It is possible. But I think Apple may reject your app. I found a link with good explanation here
And this might help also.
http://www.akadia.com/services/ssh_test_certificate.html
http://www.verisign.com/support/verisign-intermediate-ca/code-signing-intermediate/index.html
Blocking home button access is desirable where these units are used commercially as promotional displays or in point of sale environments. It would be useful, actually, if Apple licensed developers of point of sale apps to be able to do this - it would be no problem for this function to be specific to registered ipad units....and it would also make the ipad less of a theft target. it would be useless to anyone but the owner. right now the only answer is to physically cover the button in an enclosure, thus concealing Apple's investment in a beautiful product design.
Achieveable in software like so:
Settings > General > Accessibility > Guided Access
Set a pin if your iOS device has public access.
once in the app you want to lock down, triple click the home button to enable guided access. With this on users will be restricted to your app (or webclip) and required to enter the pin to exit to iOS home if they hit the home button.
There is no solution for this issue, maybe if you jailbreak your device, there is one, but I don't think so.
Please see: Temporarily Lock or Disable iphone home button
Why do you need to block the button? If it's some kind of evil plot to make developers only use the device for developing, the home button IS important: you must test what happens when the real user do that.