-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not show privacy screen when app is in foreground while inactive #30
base: master
Are you sure you want to change the base?
Conversation
Hi, The testing project only has a statusbar plugin and privacyscreen plugin. Note during the recorded testing I first clicked the home button to verify the privacy screen function. Then the second time I double clicked the home button, since at that time, the app still did not enter background, so the privacyscreen will not show, but once another app or home screen was selected to become active app, then the testing app will enter background, and the privacy screen would apply. If you still get problem in your testing, could you share the prototype project or a screen recording so that I can follow it to repeat the issue? Thanks |
This is a tough one. I have been agonising over this a bit. On the one hand, I don't want it to go all splashscreen whenever the touch ID modal pops up... But on the other hand, I would like it to pop up as soon as the task switcher is used. I think this PR is probably the lesser of the two evils. I will probably just go ahead and merge it this week, but I expect many issues raised because of it :/ |
I was just looking at how 1Password handles this and it's the same as your PR. Pretty sure I am going to pull this in. Sorry for the delay. |
…t view; Support ios new ios info plist launch image key; Using portait launchimage for iphone 5/6 landscape mode
Hi, Thanks |
Gonna merge this tomorrow probably... but I think it might be time for you to get commit privileges on this repo ;) |
@devgeeks Friendly reminder that this still isn't merged. :) |
I really wanna update this, but is there any chance of a quick repro to test it? I don't actually have any apps that use Touch ID. |
Hi, Steps to repeat the issue:
If replacing the privacyScreenplugin.m with the updated file in the shared folder (privacyscreen.m.withfix), then repeating the step 7, the app will have the expected behavior of showing application UI screen behind the touch id screen (screen7) Please let me know if you get any issue when using the project to repeat the issue. Thanks |
@jonathanli2 Thanks SO much for that. I'll look at this asap. |
Hi, Thanks |
Hi @devgeeks I'm having the same problem as @jonathanli2 is there any solution for this or a workaround? |
Hi,
This change is for not showing privacy screen when the app is still in foreground but may temporarily inactive, for example, when showing the ios native touch id dialog, or when user using splitview slide, or when sliding from top to show the device status bar.
I saw there is already another pull request for this issue, #26
but think that pull request may cause some side effect, so would suggest to fix the issue by changing the privacy plugin's notification handler from
UIApplicationDidBecomeActiveNotification
UIApplicationWillResignActiveNotification
to
UIApplicationWillEnterForegroundNotification
UIApplicationDidEnterBackgroundNotification
This also follows better with Apple's UI guide, as when the app is still in foreground, the app should still show the meaningful content to user.
Thanks
Jonathan