Open chandings opened 2 months ago
I was able to make it work using present function. donate did not work for me. Is there an expectation that user will interact with the app before a shortcut is created using donate?
Also how can I pass some parameter from shortcut to my app. example: User says "launchphrase"+"some other text" Is there a way that short cut would open my app and pass the "some other text" to my app?
I tried to do it too but I couldn't succeed. Can you tell me how you did this?
Same problem,
Present() works, but not donate(). :/
any ideas ?
I was able to make it work using present function. donate did not work for me. Is there an expectation that user will interact with the app before a shortcut is created using donate?
Your app must've called donate at least once before the related action can be found in the Shortcuts app (you might have to search for your app when creating a new shortcut). If everything has been configured correctly you should see the action in the list. It might take more donations until it shows app in some cases, I couldn't find out why this happens sometimes but it happened for me. Disclaimer: I did move all my apps to native tech a few years ago, so I did not use capacitor for a long time.
Also how can I pass some parameter from shortcut to my app. example: User says "launchphrase"+"some other text" Is there a way that short cut would open my app and pass the "some other text" to my app?
This is not possible with the implementation used by the plugin. What you want to use would require custom native code, which is different for every app/usecase. Therefore it is not possible to offer such a functionality in a generic plugin afaik. For such a functionality you would need to implement App Intents: https://developer.apple.com/documentation/appintents/creating-your-first-app-intent
What does everyone of you want to achieve with the donate function, maybe there is a misunderstanding here? To be clear, the donate function does not create a Shortcut directly. It only provides a single building block for the user to create a shortcut with.
I have followed the read me step by step.
xcode version:15+ tested on ios: 17+(actual device) and 15+(Emulator) Capacitor: 6 capacitor-plugin-siri-shorts version 6
Followed every step given in the read me file. however I could not see any new entry in shortcuts app.
I had used shortcuts.donate function. I could see its log.