Posts

Post not yet marked as solved
1 Replies
700 Views
We use remote push notification with content available = 1, as per document it will wake up app, but it doesn't work properly, sometimes the app doesn't wake up. I have observed this behaviour mostly on iOS 15. We use this mechanism to send device location to our server. Why remote push notification doesn't wake up my app all the time?
Posted
by Ninad V.
Last updated
.
Post not yet marked as solved
0 Replies
243 Views
I have a macOS application. I have also created the pkg installer to install my app. The postflight script in the pkg installer has following code for launching the app as soon as installation finishes. sudo -u $USER open "/Applications/Test/Test App.app" This is working fine on macOS Mojave (10.14), Catalina (10.15) and Monterey (12.0). But, on macOS Big Sur (11.x) it is failing intermittently. This means sometimes app gets launched successfully, but sometimes app is not launched.
Posted
by Ninad V.
Last updated
.
Post not yet marked as solved
0 Replies
319 Views
I have a macOS application. I need to open an url (e.g. https://www.google.com) in the new window of default browser. I tried to use the openURL method of NSWorkspace class. It opens the url in the new tab in default browser, but I did not find a way to open the url in new window. Also, I tried to use NSAppleScript's executeAndReturnError method with following script: tell application "Safari" \n activate \n set d to make new document \n set URL of d to "https://www.google.com" \n end tell It opens the url in the new window of Safari. I cannot use it for opening the url in default browser. I wanted to know if there is a way to open the url in the new window of default browser.
Posted
by Ninad V.
Last updated
.
Post not yet marked as solved
3 Replies
609 Views
We have a macOS application. We have implemented a bash script to notarize the installer package (.pkg) of our Mac app. Sometimes it works successfully. But, intermittently it fails while checking the status of notarization. Please find below the commands used in bash script: Command: xcrun altool --notarize-app --primary-bundle-id --username --password <App_Specific_Password> --file <PKG_File_Path> Output: No errors uploading <PKG_File_Path>. RequestUUID = XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX Command: xcrun altool --notarization-info -u -p <App_Specific_Password> Error: 2021-06-10 12:33:48.300 altool[2163:13708] *** Error: Failed to get notarization info. 2021-06-10 12:33:48.300 altool[2163:13708] *** Error: code 1519 (Apple Services operation failed. Could not find the RequestUUID.) Though correct RequestUUID is passed to the command, it fails with above mentioned error.
Posted
by Ninad V.
Last updated
.
Post not yet marked as solved
0 Replies
542 Views
We have a macOS application. The pkg installer of this app contains a postinstall script. In this script, the shortcut (link) for the app is created using "ln" command. And following "osascript" command is used to refresh the shortcut link so that Finder shows proper app icon on link. osascript -e "tell application \"Finder\" to update posix file \"/Applications/App_Directory/App_Name_Link\"" osascript command does not require admin credentials on macOS versions prior to Big Sur. When app installer is executed on macOS Big Sur, osascript command asks for admin credentials with message "Finder wants to make changes". This is causing issue during silent installation (using installer command) of my app on macOS Big Sur as it prompts for admin credentials. Can you please let us know how to avoid admin credentials prompt while executing above osascript command.
Posted
by Ninad V.
Last updated
.
Post not yet marked as solved
1 Replies
518 Views
I have a Mac application of type agent (i.e. LSUIElement is true) This application contains a safari app extension. I create pkg installer of my application. This pkg installer is responsible for installing the application and launch it as soon as it gets installed. When I run pkg installer, my application gets installed and launched successfully. But, initially safari app extension does not appear in safari preferences extensions tab. When I quit the application and re-launch it, I can see safari app extension in safari preferences extensions tab. Can anyone please assist on this issue.
Posted
by Ninad V.
Last updated
.
Post not yet marked as solved
1 Replies
383 Views
My Mac is connected to Active Directory using Apple Enterprise Connect utility.I have a Mac application developed using Objective-C.I want to programmatically retrieve LDAP attributes of currently logged in user.Can anyone please let me know how I can achieve this?
Posted
by Ninad V.
Last updated
.
Post not yet marked as solved
0 Replies
288 Views
I have a Mac application. When this app is running, app icon in shown in top menu bar (like Wi-Fi, Bluetooth icons).When I enable VoiceOver and bring focus on my app icon (using Fn + Control + F8), I get audible output as "application". Instead of "application", I want to specify some different text (e.g. my app name).Can anyone please let me know how I can achieve this.
Posted
by Ninad V.
Last updated
.
Post not yet marked as solved
1 Replies
364 Views
I have a Mac application.I have implemented VoiceOver accessibility text for NSTableView cell as follows in viewForTableColumn delegate method:cell.textField.accessibilityValueDescription = &lt;Some_Text&gt;;I get VoiceOver audible output as &lt;Some_Text&gt; only when user navigates to the cell from different column (using Left / Right arrow keys).But, when user navigates to the cell from same column (using Left / Right arrow keys), I get VoiceOver audible output as the actual text value of cell.Can anyone please let me know how can I get the proper audible output when user navigates to the cell from same column.
Posted
by Ninad V.
Last updated
.
Post not yet marked as solved
0 Replies
281 Views
I have a Mac application.This app contains safari app extension.If safari app extension has not been enabled already, following method is executed to show safari preferences screen (Extensions tab) to user.[SFSafariApplication showPreferencesForExtensionWithIdentifier:&lt;SafariExtensionIdentifier&gt; completionHandler:^(NSError *error) { [self performSelectorOnMainThread:@selector(showAlertToEnableExtension) withObject:nil waitUntilDone:NO];}];- (void)showAlertToEnableExtension { NSAlert *alert = [[[NSAlert alloc] init] autorelease]; [alert setMessageText:@"Please enable safari app extension"]; [alert runModal];}The alert (that notifies user to enable extension) is popping up multiple times.Can anyone please let me know why do I get multiple alert popups.
Posted
by Ninad V.
Last updated
.
Post not yet marked as solved
0 Replies
286 Views
I have a Mac application.When this app is running, app icon in shown in top menu bar (like Wi-Fi, Bluetooth icons).When I enable VoiceOver and bring focus on my app icon (using Fn + Control + F8), I get audible output as "application".Instead of "application", I want to specify some different text (e.g. my app name).Can anyone please let me know how I can achieve this.
Posted
by Ninad V.
Last updated
.
Post not yet marked as solved
1 Replies
770 Views
I have a Mac application.I want to enable / disable some app functionality depending upon if VoiceOver has been enabled or not.I know that I can detect if VoiceOver has been enabled / disabled using [[NSWorkspace sharedWorkspace] isVoiceOverEnabled].Apart from this, I want to register for a notification to detect the changes in VoiceOver status (enabled / disabled).I found that, this can be achieved in iOS by registering to UIAccessibilityVoiceOverStatusDidChangeNotification notification.But, I did not find similar notification for macOS.Can anyone please let me know how can I achieve this in macOS.
Posted
by Ninad V.
Last updated
.
Post not yet marked as solved
0 Replies
1.4k Views
I have a Mac application of type agent (LSUIElement is true).When app is executed, app icon is shown in top menu bar. On clicking the app icon in menu bar, menu items (NSMenuItem) are displayed.Please find below my observations on following two scenarios:1. App is executed without assigning tooltip to menu items:While navigating using keyboard, VoiceOver focus remains on menu item on which there is a keyboard focus.This is working as expected.2. App is executed after assigning tooltip to menu items (using setTooltip method):While navigating through menu items using keyboard, suddenly VoiceOver focus is shifted to some other UI element on screen (e.g. Finder window, Safari window, etc) or VoiceOver focus does not move with keyboard focus.I observed that, this happens when keyboard focus is kept on a menu item for some time (e.g. around 4-5 seconds) before navigating to other menu item.This is not working as expected.Ideally, VoiceOver focus should move with keyboard focus even if tooltip is assigned to menu items.Can anyone please tell me how to fix this.
Posted
by Ninad V.
Last updated
.
Post not yet marked as solved
0 Replies
286 Views
I have a Mac application.I am in a process to make it compatible with VoiceOver functionality of macOS.When I navigate through the screen elements of my app using keyboard, I get proper audible output using VoiceOver functionality.I would like to know, how can I get audible output when mouse / trackpad pointer hovers over screen elements of my app.Can anyone please assist me.
Posted
by Ninad V.
Last updated
.
Post not yet marked as solved
3 Replies
1.1k Views
I have a Mac application.This app is executing following apple script using executeAndReturnError method of NSAppleScript class:set tempDir to path to temporary items as stringset tempFilename to tempDir &amp; "Test_Log.txt"set tempFilePath to POSIX path of file tempFilenameset wasRunning to application "Terminal"'s runningtell application "Terminal" if not wasRunning then close front window saving no end if set mytab to do script "ls -l" &amp; quoted form of tempFilePath set title displays custom title of current settings of mytab to true set custom title of current settings of mytab to "Test Log" repeat until busy of mytab is false delay 1 end repeat if ((count of windows) = 1) then quit else close (every window whose name contains "Test Log") end ifend tellWhen above apple script is executed by my app for the first time, terminal window remains open.When above apple script gets executed subsequently, terminal window is closed (as expected).Can anyone please assist me on how can I close the terminal window always.Please note that, I want to close the terminal window that has been opened by my apple script mentioned above.If there is already other terminal window opened (manually by user) before running above apple script, it should not be closed.
Posted
by Ninad V.
Last updated
.