Posts

Post not yet marked as solved
3 Replies
699 Views
Hello,I have been developing an iOS and macOS application that requires me to configure an LDAP address book programmatically. I have achieved this goal in my macOS application where I created a .mobileconfig file dynamically and installed it to system preferences.I want the same behavior for my iOS application but the .mobilconfig file I created for macOS is not working for iOS even if I add it manually.Is there any other way to programmatically configure LDAP in iOS?If so, Kindly help.Regards,Souvanik
Posted
by souvanik.
Last updated
.
Post not yet marked as solved
0 Replies
485 Views
I have been involved in the development of a macOS project that requires me to fetch an SMIME certificate and then automatically configure it to Microsoft Outlook and Apple Mail. I have been able to successfully download an SMIME certificate and store it in Keychain. While Apple Mail client automatically picks up the matching SMIME certificate that is present in the Keychain, Outlook gives a list of all the SMIME certificates present in the Keychain for the user to choose from.I have looked for various ways to do this programmatically but none workout.Can anyone please provide a suitable way to do this?
Posted
by souvanik.
Last updated
.
Post not yet marked as solved
0 Replies
318 Views
Hi ,I have created a macOS app that fetches a certificate and key and imports it into the keychain. These certifcates can also be of S/MIME type , which are used for email authentication.Now what I want to do is, whenever S/MIME certificate is encountered , this certificate should be automatically set as the applicable email encryption (S/MIME) certificate for MacMail and Outlook , also its LDAP/AD is configured in both MacMail and Outlook.Is there a way to programmatically configure a particular certificate for encryption in Outlook and MacMail?Any Swift code, tutorial ,project or terminal command would be helpful.Regards,Souvanik.
Posted
by souvanik.
Last updated
.
Post not yet marked as solved
3 Replies
1.4k Views
I am working on a macOS application that reads the CRL downloaded from a URL and finds out if a certain certificate exists in it or not. But i am havig trouble reading the downloaded CRL file. Can anyone please guide me how to do this in swift 3/4.
Posted
by souvanik.
Last updated
.
Post not yet marked as solved
9 Replies
3k Views
I am an iOS developer and I have developed an app that runs a periodic background task using Background Modes, I want to implement the same feature in the MacOS version of this app, as I am new to the MacOS development, I am facing some issue regarding implementation of this feature.I have used NSBackgroundActivityScheduler to schedule a periodic activity, which works fine, when the app is running or is in the dock. But I failed to achieve the same result , when I quit the application. I want to run that task even after the application terminates or quits. func startBackgroundTask() { let activity = NSBackgroundActivityScheduler.init(identifier:"com.abc.xyz") DispatchQueue.main.async { self.activity.invalidate() self.activity.interval = 60 self.activity.repeats = true self.activity.qualityOfService = QualityOfService.background self.activity.schedule() { (completion: NSBackgroundActivityScheduler.CompletionHandler) in print("background task scheduled") // Perform the activity NotificationManager.sharedManager().showNotification(informativeText: "Next notification will come after 1 minute") //perform operation over here... completion(NSBackgroundActivityScheduler.Result.finished) } }I have researched various options regarding this , like XPC , LaunchAgent , LoginItems , Process etc. but I am confused which option to go with. As on apple developer forum they have used XPC with LoginItems, but I got stuck when I tried to implement it.Can anyone guide me , how to achieve this, any tutorials ,video , sample will be helpfull.
Posted
by souvanik.
Last updated
.