Skip to content
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

Nudge logs report 'Camera is currently' when its not - but Nudge still launches #400

Closed
dstranathan opened this issue Sep 8, 2022 · 1 comment

Comments

@dstranathan
Copy link

dstranathan commented Sep 8, 2022

At least once a day I see a seemingly bogus entry stating that a camera is active when it's not.

localhost Nudge[40801]: [com.github.macadmins.Nudge:user-interface] Ignoring Nudge activation - Camera is currently on and not pastRequiredInstallationDate

In this example, I have ~26 hours remaining on my due date (Im in the Approaching phase but not Immenant). I have Approaching set to 72 hrs and Immenant set to 23 hours.

It’s strange because even though I see this entry, Nudge will launch a few seconds later anyway. So its a false positive of sorts.

I have seen this seemingly bogus entry on 2 test Mac thus far. Both were M1 Macs running macOS Monterey. 1 has only the built-in Apple laptop camera (not active and no A/V apps running). And the other Mac had a Logitec USB camera attached, but not active (and no A/V apps running).

I have tested active cameras quite a bit and Nudge seems to detect them when they are active most of the time, but this false positive is odd - especially since Nudges launches anyway.

Example plist snippet:

	<key>optionalFeatures</key>
	<dict>
		<key>acceptableAssertionUsage</key>
		<true/>
		<key>acceptableCameraUsage</key>
		<true/>
		<key>acceptableScreenSharingUsage</key>
		<true/>

On the flip side of this coin (but related), Im testing Nudge on macOS 13 Ventura beta 6 and I am using Apple Screen Sharing to connect to it when testing Nudge UI (its at a remote location).

I often see this entry in the logs:

localhost Nudge[50615]: [com.github.macadmins.Nudge:user-interface] Ignoring Nudge activation - Screen sharing is currently active and not pastRequiredInstallationDate

But Nudge still activates for me over Screen Sharing.

(I can open a seperate Issue/case if needed)

@pro4tlzz
Copy link
Contributor

pro4tlzz commented Sep 8, 2022

// Don't nudge if camera is on and prior to requiredInstallationDate
this is the function for camera detection

this is the actual code for it

// https://stackoverflow.com/questions/37470201/how-can-i-tell-if-the-camera-is-in-use-by-another-process

quite difficult for me to understand but the problem may lie within here, if it is a code problem and something that can be reproduced

@erikng erikng closed this as completed Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants