Global key Accessibility in cocoa - macos

I am working in Cocoa.
I have made changes to my application as per the answer recommended by link
I have following questions:
Can I add my app to System Accessibility List programmatically after taking users consent, so that it is seen checked in System Preferences > Security & Privacy > Privacy > Accessibility.(Like they do it in iOS where app requests user to show notifications, and user can choose between Dont allow and Ok).
After the application is successfully added to the Accessibility list how do I get the value of checkbox in Accessibilty list programatically ?
I am expecting a sandbox/"app store" compatible answer

You can have 1) done automatically by passing in kAXTrustedCheckOptionPrompt whilst querying 2) with AXIsProcessTrustedWithOptions:
NSDictionary *prompt = #{kAXTrustedCheckOptionPrompt:#YES};
BOOL accessible = AXIsProcessTrustedWithOptions((CFDictionaryRef)prompt);
This will provide whatever the current system standard dialog is for the user consenting to trust your app.

Related

APK REQUIRES VALID PRIVACY POLICY​ Your app is uploading users' Primary Account information

At first the sata application was accepted by google play until several releases. However, at the time of doing the 12th release, my app was removed from google play.
APK REQUIRES VALID PRIVACY POLICY​
Your app is uploading users' Primary Account information to https:.......... without posting a privacy policy in both the designated field in the Play Developer Console and from within the Play distributed app itself.
how to solve it?, i need help immediately. thank you.
The solution is clear:
You need a Privacy Policy
You need to add the Privacy Policy:
In the app itself
On the Play Developer Console
You have multiple options how to link to your Privacy Policy from within your app: About or Settings screen, Sign-up or Login screens, separate item in the menu etc.
When you add the Privacy Policy on Play Developer Console it would be made available on your app listing page:
You can read Google's requirements for having a Privacy Policy on this help page here:
https://support.google.com/googleplay/android-developer/answer/113469#privacy

How to add the privacy policy in designated field to Chrome Extension?

Is there any key or property or other way to add Additional Information in designated field to Chrome Extension.
Note : We are trying to add Additional Information field in Chrome Extension Download UI as developer Privacy link but unable to add field , can you please help us that how to add the privacy policy in designated field.
You can add your privacy policy link here
Confusingly this is associated with your publisher/developer account and not with the individual extension package.
For the most recent web store developer dashboard this worked for me:
Go to the web store developer dashboard at https://chrome.google.com/webstore/devconsole
Click Account on the left hand side
Fill in the Privacy policy field
Click Save (top right)
finally i got answer , that we have to login with chrome web store where we have published the chrome Extension on that page scroll down at the button you will get Developer account info there we can add link as privacy link and support email address.

Cocoa App - Current way to make a start at login item

I'm currently writing an application which includes a helper app that can to be startet at login at the users request.
Many apps are using the LSShareFileList method which is deprecated.
Another way would be the System Management Framework using SMLoginItemSetEnabled which won't give the user the ability to see the login item in the "Startup Items" list in the system preferences.
The last option i've found is using a LaunchAgent to realize this which also wouldn't create a entry in the "Startup Items" list for the user.
Is there currently no (official supported) way to realize a "Login at startup" method inside the app which will create a Login Item at the users system preferences?
Thanks!

Two users Having same HomeKit controller application installed on two different iPhone

Two users Having same HomeKit controller application installed on two different iPhone.
User 1 adds Home, Rooms, Zones and Accessories using the application and he can now control the Accessories, using the app interface.
User 2 is in same environment (either in physical Home which has all the Accessories of user 1), But how can he control these accessories using the same app, how he will be able to see all the Rooms, Zones and Accessories added by the User 1?
How does HomeKit manages this multiple user accessing same Accessories scenario, or do we need to handle this scenario by our self in code?
Also how does it maintains the identity of the user with Home, that this particulate Home belongs to this XYZ user? As all the HomeKit user data is synced with iClod there should be some identity mapping for the Home entity.
I have done a much workaround for this.
First of all handling things by our own is not preferable for multiple users.
I had this query that how all configuration done on one device will reflect on another device for same home.
Unfortunately apple didn't provided much information on this and they also didn't clarify that Apple TV will require or not(As I have referred to some reports that says Apple TV will use as intermediator between iOS devices.
Now at application side i have tried to add User to home.
There is a HMUser class and we can add user to any home that we want to sync.
I was running my app in iOS 8.1 in both the devices, I was also logged in to icloud and keychain access was also enabled.
Now i have tried to add user using method of HMHome class
-addUserWithCompletionHandler()
I shows a popup in which we need to enter the email id of user to which we want to give access to current home.
But it didn't work. I always get error "notification not enable at remote side"
I think that login to Apple TV is require for adding user. I am not sure about this, Apple hasn't clarify on this too.
I don't have Apple TV if you have try to login in it and use two other iOS devices to give access to any icloud account.
Also revert me if it works.

iOS Settings Bundle Editable

Is there a way to allow the user to add additional items to one group in the settings bundle? Specifically, I a would like the user to be able to specify a list of URLs and Site Names within Settings. The functionality is almost exactly the same as the Twitter app that allows for a list of usernames and passwords and in the mail app where the server name, inbound and outbound email server names/addresses are maintained. I am familiar with doing this with archive, CoreData and SQLite within the app, but would prefer to keep key settings outside the app as I would like to intentionally distance the config data from the user interface.
Thanks
Derrick
Unfortunately you're pretty limited with what you can do in the settings. There isn't any way to run code, so there can be no add buttons or changes to the model - its basically predefined key value pairs. Twitter and mail are first-party apps so they can do things in settings the rest of us can't.

Resources