[Siri Shortcuts Plugin] Throwing "Abort Activity Change Exception" exception

Forge Component
(0)
Published on 15 Mar by Bruno Martinho
0 votes
Published on 15 Mar by Bruno Martinho

Hi Team,

I am using this plugin in our application.

When I invoke the 'Present' action, it throws "Abort Activity Change Exception" exception.

Can anyone please help me in this regards.

Thanks,

Shreyas Bhondve

Shreyas Bhondve wrote:

Hi Team,

I am using this plugin in our application.

When I invoke the 'Present' action, it throws "Abort Activity Change Exception" exception.

Can anyone please help me in this regards.

Thanks,

Shreyas Bhondve

Can you share the Service Center Log for the Same?



assif_tiger wrote:

Shreyas Bhondve wrote:

Hi Team,

I am using this plugin in our application.

When I invoke the 'Present' action, it throws "Abort Activity Change Exception" exception.

Can anyone please help me in this regards.

Thanks,

Shreyas Bhondve

Can you share the Service Center Log for the Same?




Hi Assif,

The logs just shows empty messages. 

Moreover, I tried to run the SiriShortcutsSample Demo app and it runs perfectly fine. 

I reused the same logic of Present action created in the demo app. 

Shreyas Bhondve wrote:

assif_tiger wrote:

Shreyas Bhondve wrote:

Hi Team,

I am using this plugin in our application.

When I invoke the 'Present' action, it throws "Abort Activity Change Exception" exception.

Can anyone please help me in this regards.

Thanks,

Shreyas Bhondve

Can you share the Service Center Log for the Same?




Hi Assif,

The logs just shows empty messages. 

Moreover, I tried to run the SiriShortcutsSample Demo app and it runs perfectly fine. 

I reused the same logic of Present action created in the demo app. 


Error says "Error while performing shortcut operation, user might not run on iOS 12"

Whereas my iPhone is running on iOS12.2

This error message is default in the plugin and might not be override by the correct error message.

What's the device you are using? iPhone X?

Can you please share the OML or the JavaScript code you are using?

That would help to find out where the problem is.

Thanks 

Bruno Martinho wrote:

This error message is default in the plugin and might not be override by the correct error message.

What's the device you are using? iPhone X?

Can you please share the OML or the JavaScript code you are using?

That would help to find out where the problem is.

Thanks 


I am using iPhone 7 plus.

I cant share the OML file but here is the screenshot of my logic

Shreyas Bhondve wrote:

Bruno Martinho wrote:

This error message is default in the plugin and might not be override by the correct error message.

What's the device you are using? iPhone X?

Can you please share the OML or the JavaScript code you are using?

That would help to find out where the problem is.

Thanks 


I am using iPhone 7 plus.

I cant share the OML file but here is the screenshot of my logic


Hi Bruno,

I just created a separate project with this plugin installed in it. When I invoke the 'Present' action it throws the same error that I get in my application.

Attached is the OML file.


Can any please help me in resolving this issue.

It's quite urgent as I need to deliver the working model in few days.

Hello,

You need to set the Persistent Identifier and the Title.

Here's a sample:


Bruno Martinho wrote:

Hello,

You need to set the Persistent Identifier and the Title.

Here's a sample:


Hi Bruno,

Its still not working.

I have set the values for Options.PersistentIndentifier, Options.Title and Options.SuggestedInvocationPhrase(Please refer to attached screenshot).

Moreover, even the SiriShortcutsSample app available on Forge is also not working. Its throwing some error in red at the top.

Please check it at your end.

Regards,

Shreyas Bhondve



Can anyone please help me in this regards.

Thanks

Hi,

Can you install this OAP and try?

I've manage to create the shortcut:

Bruno Martinho wrote:

Hi,

Can you install this OAP and try?

I've manage to create the shortcut:

Hi Bruno,

I have installed the OAP and run the app on my device. I created a shortcut then, but when I speak the phrase which I recorded while creating the shortcut to Siri, it does not opens the app.

Could you please try it your end and see if you are able to open the app by the phrase with which you created the shortcut.

Please do the needful as I have to complete this task in this week only.

Regards,

Shreyas Bhondve


Hello, I've tried and recorded the following sentence:

Open demo app.

It created the shortcut, and saying Siri, open demo app, it's opening the app.


What phrase are you recording?

Bruno Martinho wrote:

Hello, I've tried and recorded the following sentence:

Open demo app.

It created the shortcut, and saying Siri, open demo app, it's opening the app.


What phrase are you recording?


Since our app is mainly focused on searching jobs. I am using a phrase like this one "Search jobs for consultants in California"

Is there any constraint in creating the phrase?

Bruno Martinho wrote:

Hello, I've tried and recorded the following sentence:

Open demo app.

It created the shortcut, and saying Siri, open demo app, it's opening the app.


What phrase are you recording?


Hi Bruno,

I have now managed to open my through the shortcut.

I have just have a query:

Is there a way to recognize if the OnResume is invoked via Siri or not. Because in OnResume method I am invoking the screen which shows the Job results. I don't want this screen to be opened when user normally resumes to the app.

Regards

Solution

Hello.

Have you tried using GetActivatedShortcut inside the OnResume?

If the OnResume comes from the app being brought from background, the fields should be empty.

Solution

Bruno Martinho wrote:

Hello.

Have you tried using GetActivatedShortcut inside the OnResume?

If the OnResume comes from the app being brought from background, the fields should be empty.okay

Okay. Let me try that.

Shreyas Bhondve wrote:

Bruno Martinho wrote:

Hello.

Have you tried using GetActivatedShortcut inside the OnResume?

If the OnResume comes from the app being brought from background, the fields should be empty.okay

Okay. Let me try that.


Hi Bruno,

When I am closing the app's instance from the stack (Double-clicking on Home button and removing app from stack), Siri opens the app but it does not perform the task that it does when opening from 'Background' state. I know I have called the action that needs to be call via Siri, in OnResume method but I want the same functionality to happen when the app is open from a 'Closed' state.  

Could you please help me achieving it?

Regards,

Shreyas Bhondve

Bruno Martinho wrote:

Hello, I've tried and recorded the following sentence:

Open demo app.

It created the shortcut, and saying Siri, open demo app, it's opening the app.


What phrase are you recording?

Hi Bruno,

Is there a way to get the recorded phrase after user create a Siri shortcut ?

I need the phrase which user has recorded to create the shortcut.

Please let me if we do it.

Regards,

Shreyas Bhondve