I have changed my ShortcutProvider as below, so that I can see all the shortcuts with AppName in Shortcut App and test them.
import AppIntents
@available(iOS 16.0, *)
struct MZDonationShortcuts: AppShortcutsProvider {
static var appShortcuts: [AppShortcut] {
AppShortcut(
intent: MZDonationIntent(),
phrases: [
"Donate through \(.applicationName)",
"Donate to \(\.$donationCategoryEntity) using \(.applicationName)",
"تبرع من خلال \(.applicationName)",
"تبرع ل \(.applicationName)",
"تبرع ب \(.applicationName)",
"تبرع باستخدام \(.applicationName)",
"تبرع \(\.$donationCategoryEntity) \(.applicationName)"
]
)
AppShortcut(
intent: MZDonationIntent(),
phrases: [
"Donate using \(.applicationName)"
]
)
AppShortcut(
intent: MZDonationIntent(),
phrases: [
"Donate with \(.applicationName)"
]
)
AppShortcut(
intent: MZDonationIntent(),
phrases: [
"Donate to \(.applicationName)"
]
)
}
}
All the phrases "Donate through", "Donate using" etc are working perfectly from Shortcut app. Also tested in Product -> AppShortcut Preview -> Says Matching Phrase there as well. Issue is only when user say the phrase with Siri. (This is the feature our users looking for)
My App is in React-native and Minimum deployment Target is 12.0, So I want not able to Add AppShortcuts.xcstrings as you have instructed, So I have added AppShortcuts.strings file now. The File is as below , I hope this is how it is expected to be.
"Donate through ${applicationName}" = "Donate through ${applicationName}";
"Donate to ${applicationName}" = "Donate to ${applicationName}";
"Donate with ${applicationName}" = "Donate with ${applicationName}";
"Donate using ${applicationName}" = "Donate using ${applicationName}";
"Donate to ${donationCategoryEntity} using ${applicationName}" = "Donate to ${donationCategoryEntity} using ${applicationName}";
These changes I tested on iphone 11 pro (18.3.1) "Donate Using AppName" is not working. Rest all phrases working.
For further testing, I changed my Minimum Deployment target to 18.0, Then added the AppShortcuts.xcstrings and removed
AppShortcuts.strings, But experiencing the same issue. Any help On this, (AppShortcuts.string Added in my Main target, I am not using Intent Extension, all my Siri related files are inside Main Target -> Siri Folder -> I have AppIntent, AppShortcutsProvider, Entity, Modal and Query)