How to disable the Screen-shot in iOS using React-Native - ios

I am working on POC in which I have to disable screenshot in ios using React-Native

Unlike Android, in iOS you cannot prevent the user from taking screenshots.
But if you have really have to hide as many as possible information from screenshots, you can try requiring the user to be touching the screen to view whatever information you're displaying (Like Snapchat). This is because the system screenshot event interrupts touches.
Thanks for this comment about the idea.

Related

How can you prevent users from taking screenshots in a React Native IOS app?

I am currently building an IOS app with React Native, and I am looking into how to prevent users from taking screenshots on certain parts of the app.
I read this article on this issue: https://www.netguru.com/blog/prevent-screenshots-react-native, and I learned that there are basically two options. I can either use the paid ScreenShieldKit SDK or I can create an invisible screen animation that somehow covers the content of the app in a screenshot.
I am not looking to pay for ScreenShieldKit, so how can I go about making this animation to cover screenshots on my app, and will it even work?
Any help is appreciated. Thanks!
The two options for preventing screenshots on a React Native IOS App
ScreenShieldKit's technology is patented. And more likely than not, it is based on the other solution which you yourself know of (invisible screen animation). So it may not be wise to post the exact code here, as it could very well infringe upon their patent.

Polymer Web apps Home screen for IOS

I have a polymer web app that can be easily added to the Home Screen of an Android device.But I am not getting any way to add home screen for ios.
In google developer blog I find one post where they told it's not possible for ios.This post is now backdated.I believe there have some way to add home screen for ios/iPhone in 2017 :)
https://developers.google.com/web/updates/2015/10/splashscreen
Any suggestion or help will be really appreciated.
This feature I am looking for ios
Apple does not support Progressive Web Application features yet....
They have supported an Add to Home Screen Experience since the iPhone was first released. You need the touch icons referenced in the previous answer.
You still need to manually prompt the user to add to the home screen. I have used Spinnelli's library to help, http://cubiq.org/add-to-home-screen

iOS - take screenshot of springboard(home screen) programmatically

is it possible to take screenshot of home screen of iPhone before start my application in iOS.
I had tried google and stack overflow but it only allow to take screenshot of any screen of my application.
Look at the following screen which I want to make for my application background.
Any suggestion will appreciated.
Taking screenshots outside your sandbox is not possible unless you have Jailbreak since that would be huge privacy issue. Sorry to be bearer of the bad news.
One and probably only option is to ask user to choose background himself. Second option is to build Today extension, which is then shown in your notification center - then you would have background you desire.

Show a view on main screen while the app is in background in ios

Thanks in advance.
Is it possible to show a capture screen like assistive touch view in ios when we click on application icon.Means i want to show the iPad screen and top on the with transparent background a view need to display.
I want to create an app like this after clicking the app icon i want a screen like this on my main screen and i can able to customize it and capture the selected area. is it possible to do that. and is there any api for that.
i don't think you are allowed to capture the home screen in public api. this question had similar request.
How can I take a screenshot of the iPhone home screen programmatically
UIGetScreenImage() mentioned in the answer is very useful, if you only targeting Jailbroken phones.
However, i found an open source library called "Record My screen", which claim can
Record the display even on non-jailbroken iPhones.
I personally didn't test that, since i believe Apple would somehow find that and pull the app off (that happened to several apps before). If you really interested in it, maybe you can learn something from that library.
Hope that helps you.

Show taps in iOS App Demo Video

I am making demo videos of my iOS apps, some of which I made with XCode and others of which I made in Unity3D. I plan to use the Elgato Game Capture HD to capture my demo videos but I am not sure how to show the "taps." I found Touchpose, but when I changed the main.m as suggested by the instructions on the GitHub page I got error messages saying that QAppDelegate and QTouchposeApplication were undefined. I added import "QTouchposeApplication" but got an error message suggesting I change QAppDelegate to AppDelegate. When I did this the build failed. When I left it as QAppDelegate, added QAppDelegate to the project and imported it into the main.m the error messages went away but the build still failed. Am I doing something incorrectly? I found no tutorials on Touchpose online and am confused. Alternatively, is there some other easy solution, for example using the Elgato software or some other software or framework? I also tried Reflector but my wifi is not fast enough to support good frame rates with it. I am aware that I could use unity and "build for OSX" or in the case of XCode apps just screen record the simulator but I would prefer a single, foolproof solution for all of my apps. Thanks!
One way is to use assistive touch and create your own touch. You can do this by going to Settings > General > Accessibility > AssistiveTouch, turn it on, then tap the thing that pops up, click Custom, then create your own touch. Then use that touch to show taps in a screen recording.
It's a bad solution, but I'll post it in case it fits your needs.
You would have to superimpose multiple videos to make it so that only the tap shows and not the AssistiveTouch icon. Also, you can't scroll while using it.
It's also explained here: https://www.youtube.com/watch?v=4JqjU0-4Cek
Are you able to demo on a simulator? If so, Giphy Capture is a good solution. It has an option for showing taps in the settings.
If you can make your screen recording on iOS simulator, you can enable displaying taps with following code. Open your terminal and run it and restart your simulator.
defaults write com.apple.iphonesimulator ShowSingleTouches 1
I had trouble with Touchpose initially but figured out how to use it. The issue is that you have to go to build phases and add the .m. In regard to screen recording I am using the Elgato Game Capture HD. My only problem is showing the dots on Unity 3D applications, which is something I am still working on.

Resources