Sunday, October 15, 2023
HomeiOS Developmentios - The way to add APP intents or intents utilizing siri...

ios – The way to add APP intents or intents utilizing siri package in swift?


I need to open the app on saying “Hey siri, Ship Cash”?

I’m having a cash switch app .I need to add siri assist.resembling on saying “Hey siri, Ship Cash”? It ought to open the app (if not working) and go to a particular display screen.

I’ve tried including the app intents extension and the next code.

import AppIntents

struct SendMoney: AppIntent {
static var title: LocalizedStringResource = "SendMoney"

func carry out() async throws -> some IntentResult {
    return .end result()
}
}


struct MyAppShortcuts: AppShortcutsProvider{
static var appShortcuts: [AppShortcut]{
    AppShortcut(intent: SendMoney(), phrases: ["Transfer Money in DemoApp"])
}


}

I obtain the next error after this

“Please test your venture settings and make sure that a legitimate product has been constructed.”



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments