Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Followed readme step by step but it did not work. #60

Open
chandings opened this issue Sep 13, 2024 · 5 comments
Open

Followed readme step by step but it did not work. #60

chandings opened this issue Sep 13, 2024 · 5 comments

Comments

@chandings
Copy link

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.

@chandings
Copy link
Author

chandings commented Sep 17, 2024

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?

@erenn44
Copy link

erenn44 commented Sep 17, 2024

I tried to do it too but I couldn't succeed. Can you tell me how you did this?

@Watchwolf
Copy link

Same problem,

Present() works, but not donate(). :/

any ideas ?

@lovetodream
Copy link
Owner

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

@lovetodream
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants