Closed codebar33 closed 6 years ago
I also tried to call activateWithInfo from a dispatch_async, it didn't work either.
We're preparing an update of Kevlar lib this week that should fix your problem. It would be great if you could give us a bundle id of your CLI app, and we send you a new copy of lib to test this issue. Can you do this as a new comment here or via support message?
Hi Dimaty, thanks a lot, our CLI bundle ID is: com.DigiDNA.iMazingMac.CLI
Hi Dimaty, many thanks for the fix, I just tested wot the new Kevlar build and it works!
Hi,
I reopen this one. I thought it was working last week but it's not.. So activation now works fine when using
[ NSApplication sharedApplication ]
instead ofNSApp
in an Objective-C console app. But the completionHandler is never called so it makes the integration difficult to achieve, even if I put a sleep of 20 seconds instead of the while loop, before callingDMKIsApplicationActivated
,DMKIsApplicationActivated
return false with DMKevlarErrorDMKevlarActivationInProcess
. But then after when I relaunch the app, the app is activated so activation worked fine.Here is the code: