iOS Hiding Elements on Screenshot - iphone

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.

Related

new version of Simulator does not match assistant app on devices

Has anyone noticed that the Simulator in the Actions on Google Console has been updated and it no longer is an accurate simulation of the assistant app on devices?
They added a display tab but it seems to not show all the output. My application often includes 2 chat bubbles in one response and the new simulator only displays one even though the tts for both is heard in the audio.
I have the same problem. Hope they don't remove the ability to add to responses. It would look terrible with only one line.

My website's apple touch icon won't update on my 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.

Disable Home Button

I know this has been asked previously however I would like to disable the home button for an in-house app which will be distributed internally across iPads.
I have searched for a solution both on here and Google and would like to stop users from putting the app into the background. I have seen one solution which doesn't seem to work under iOS 4.0 which opens the app up again when the home button is pressed.
Could I make use of any private APIs to do this seeing as this is an internal app and won't be reviewed by Apple for the App Store?
Thanks
I don't know why this is down voted so much it is a perfectly legit use case for an internal enterprise application. Kiosks, POS etc.
Anyway anyone wanting to know how to do this should see my answer here Lock-down iPhone/iPod/iPad so it can only run one app
Whatever your reasons are you are not able to do this.
Apple provides no functionality to perform this action through their API. You might want to re-think your strategy. Look maybe instead for a physical barrier.
Additionally you might want to look into JailBreaking and iPhone since you say it is only for internal development and won't go to the appstore. A jail broken phone might allow you access to change the home button behavior, though I cannot confirm this since I have never had need to code on a jail broken device.
If it's your iPad, glue or bolt a cover over the home button. Connect the iPad to Xcode or iTunes to halt and/or reload your app.
But note that knowledgable users will still be able to reboot the device by holding down the lock button.
Jailbreak and add incarcer app can disable the home button (admin has a code to allow activation). Then you're locked in your app. If you're up for jailbreaking, seems like a great solution.
There's a new hardware solution, adhesive-backed aluminum home button covers. They allow home button activation through a pinhole, using a paperclip (similar to many popular metal encosures). http://bubcap.com/bubcap-pro.html

iPhone 4.3.3 shows wrong(depreciated) 'zoom-in' snapshot(screenshot) at launch

It's hard to describe my iPhone's situation..
I launched an App and used it. for example, a Twitter app.
After that I closed it with Home Button.
Then I launched a few apps which were enough to take most memory.
And, when I launch the Twitter app again, a screenshot(snapshot), which was taken exactly when I closed the app at first, was shown about 0.5~1 sec.
I know this is a way of animation effect, but mine is somewhat wrong,
because that screenshot should be 'loading image (ex: Default.png)' if the app launched long time ago is about to start from the beginning (the 'twitter' app must be closed because of out of memory).
It makes stressful situation when I use kind of 'personal memo app'.
Before I upgrade to iOS 4.3.3, whenever I launch this app, it requires password without showing any old screenshot.
But now, everyone can see my memo because of that automatic snapshot which pops up about a second.
Help needed. Thanks!
Before your app goes into background you need to hide/remove all the views you don't want to appear when you open the app again.
You should do this in the applicationDidEnterBackground: UIApplicationDelegate method.
See the Remove sensitive information from views before moving to the background bullet point in this section of the Apple Developer Docs.
The only way I know to prevent that is to set "Application does not run in background" in your plist file.

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.