Steps to Reproduce
- Download and open a sample
- Open
SoupChef.Shared -> Data -> SoupOrderDataManager.cs and go to the line 38
- Run it on a device
- Add a new item in the app (tap on
+ -> tap on any item -> tap on Place Order)
- Look at the output
Expected Behavior
There is Successfully donated interaction. message.
Actual Behavior
There is Interaction donation failed message.
Error is: Cannot donate interaction with intent that has no valid shortcut types
This code creates an INInteraction instance from the custom Intent.
Also there is another way to get a runtime exception:
- Open
SoupChef.Shared -> Data -> SoupMenuManager.cs
- Uncomment line 119
- Go to the line 223
- Uninstall the application from the device
- Run it
You will get Could not initialize an instance of the type 'Intents.INShortcut': the native 'initWithIntent:' method returned nil. exception.
Stack trace: https://gist.github.com/mykyta-bondarenko-gl/07680ecf25d7011b6455aa1f69332e10
Additional Information
I've create a new intents file via new VSfM UI. Also I've tried to use an old intents file and the original one (from the Xcode project)
We've discussed this issue with @jstedfast and decided that we need an additional help to found the reason of these issues
Environment
- VSfM
https://gist.github.com/mykyta-bondarenko-gl/50a460f96cc0f95f8106cb31cabd79ea
Build Logs
- Build Output
https://gist.github.com/mykyta-bondarenko-gl/8afb8ba2591386e9ae9f7274a2b458d1
Example Project
Sample
Steps to Reproduce
SoupChef.Shared -> Data -> SoupOrderDataManager.csand go to the line 38+-> tap on any item -> tap onPlace Order)Expected Behavior
There is
Successfully donated interaction.message.Actual Behavior
There is
Interaction donation failedmessage.Error is:
Cannot donate interaction with intent that has no valid shortcut typesThis code creates an
INInteractioninstance from the custom Intent.Also there is another way to get a runtime exception:
SoupChef.Shared -> Data -> SoupMenuManager.csYou will get
Could not initialize an instance of the type 'Intents.INShortcut': the native 'initWithIntent:' method returned nil.exception.Stack trace: https://gist.github.com/mykyta-bondarenko-gl/07680ecf25d7011b6455aa1f69332e10
Additional Information
I've create a new intents file via new VSfM UI. Also I've tried to use an old intents file and the original one (from the Xcode project)
We've discussed this issue with @jstedfast and decided that we need an additional help to found the reason of these issues
Environment
https://gist.github.com/mykyta-bondarenko-gl/50a460f96cc0f95f8106cb31cabd79ea
Build Logs
https://gist.github.com/mykyta-bondarenko-gl/8afb8ba2591386e9ae9f7274a2b458d1
Example Project
Sample