lovetodream / capacitor-plugin-siri-shortcuts

Capacitor Plugin for Siri Shortcuts
MIT License
17 stars 6 forks source link

Present shortcuts #3

Closed mishelson closed 2 years ago

mishelson commented 2 years ago

I have used similar plugins of sirishorts in previous versions of capacitor, we could add the "Present" function to create the "add to siri" within our application. It would be incredible to be able to do it to facilitate the user experience when adding the shortcuts either by voice or directly by text.

somethings like this: siripresent

lovetodream commented 2 years ago

Yeah, that seems like a great addition, I'll look into this next week.

lovetodream commented 2 years ago

I've added the feature with version 2.2.0

mishelson commented 2 years ago

To Native -> SiriShortcuts present 96927831 ⚡️ Error: Plugin SiriShortcuts does not respond to method call "present" using selector "present:". ⚡️ Ensure plugin method exists, uses @objc in its declaration, and arguments match selector without callbacks in CAP_PLUGIN_METHOD. ⚡️ Learn more: https://capacitorjs.com/docs/plugins/ios/#defining-methods 2021-10-15 17:26:17.526034-0600 App[6688:50955] [boringssl] boringssl_metrics_log_metric_block_invoke(144) Failed to log metrics

lovetodream commented 2 years ago

Could you provide the related code?

You might also have a look at the working example. https://github.com/lovetodream/siri-shortcuts-ionic-angular-sample

mishelson commented 2 years ago

Everything is perfect with your code, the problem was the parameters used equal to the donate. Your example helped me, thank you very much, you are the best @lovetodream

lovetodream commented 2 years ago

Glad to help