Post

Replies

Boosts

Views

Activity

Reply to OSLog is not working when launching the app with Siri.
Thank for your response, I tried to place a log in the perform method as follows: @MainActor func perform() async throws -> some IntentResult { for item in 0...10000 { os_log(.debug, "perform boot: \(item)") } return .result() } Each time I initiate from Siri and fetch logs, the logs appear to be uneven. Most of the time, I can only log from 400 onwards, and after that, the logs are not printed fully. Then I tried using async await when logging: @MainActor func perform() async throws -> some IntentResult { for item in 0...10000 { await printLog(item) } return .result() } and this time the print seems to work more reliably, but it still doesn't print all the numbers within the for loop (Only able to print around 9500 to 9990 numbers).I understand that app intents run in the extension process and it does not operate reliably for handling heavy and sequential tasks, is that correct?
1w
Reply to OSLog is not working when launching the app with Siri.
Thank for your response, we tried changing all log statements to os_log, but the issue we are facing is that even if nothing is processed in func perform() async throws -> some IntentResult, when launching with Siri, the logs in func scene(_ scene: UIScene, willConnectTo:) and the functions before sceneDidBecomeActive(_ scene: UIScene) are not being printed fully on certain iPhones (I experience this most on iPhone SE2 running iOS 16.4). This makes it difficult for me to test using logs. Is there any way to resolve this issue?
1w
Reply to OSLog is not working when launching the app with Siri.
This logging issue seems to require more testing to better understand where the problem lies. Additionally, I have a questions: if the phrase for the app shortcut does not include the default commands of Siri to open the app, such as 'open + appname' or 'launch + appname', will the perform function still be called when using these default commands? My app is named: appname(debug), but when I call the command with Siri as 'open + appname', the app still opens, while the phrase for my app shortcut is implemented as 'open + appname(debug)'. Could it be that my app shortcut is being cached, or is Siri automatically understanding and opening my app?
1w