You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@KishanBagaria this is in theory possible using a similar approach to what's done in node-mac-contacts - i'd need to implement manual management of an EventEmitter since this isn't a class-based module. It might also be rather trickier because in this case we're needing to poll for a pretty wide range of notifications, each of which would need to be scaffolded up and torn down carefully to avoid leaks and crashes.
Like @glawson said you can for now poll with getAuthStatus() - i'd consider the event emission approach but it's gonna be a wild enough ride that i don't think i myself will have the cycles in the near future 🤔
Is it possible to get notified when a particular permission is granted by the user, manually from System Preferences or through the prompt?
The text was updated successfully, but these errors were encountered: