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?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
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.
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.
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.
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.