I am developing a banking application and the client requirement is not to show/save the screen snapshot when app goes in the background (i.e., when home button is clicked). I have added an overlay view in background method and removed that view when app again comes in the foreground. Its working perfectly fine when I click home button, wait for 1 or 2 secs and then again click home button twice.
My problem is: If I click home button once, wait for some milliseconds (just before the app icons visible)and then again click home button twice, then the screen snapshot is visible (in multitasker view).
When I analysed the issue, I came to know that my background delegate method doesn't get called in this scenario and hence, no overlay view is added in this case.
Steps to Reproduce:
- Add An overlay view (with while color, lets say) in appDidEnterBackground Method of your application.
- Add code for removing that overlay view in willEnterForeground Method.
- Now, run your application.
- Press Home button once.
- Just after pressing home button once (and just before your application icon is visible), click home button twice so that you are able to see the Multitasker view.
- Instead of your overlay view, you would be seeing the application screenshot there.
Expected Results: The While overlay view should have been added, and you should have seen that instead of app snapshot.
Actual Results: You are able to see the application screen shot in Multi tasker view
Version: iOS 7 and above