I think I found an incompatibility between the new ApplicationModel and the speech recognition API.
The issue seems to "work" in the following way:
- if the app is in background, then I am able to send Voice Commands to it
- if the app is in foreground, even when correctly deactivated under a screen lock, Voice Commands are recognized by the operating system but not delivered to the app (unless I am missing something).
Same behaviour both with Lumia 920 (//build/ firmware) and emulator.
Everything is fine if the ActivationPolicy is the Default.
You can easly reproduce the problem downloading the example here:
and then modifying the WAManifest.xaml, adding the "ApplicationModel=Resume" attribute.
Am I missing something?
- Edited by delfinof Sunday, November 11, 2012 7:10 PM
The same happens also with your own protocol-uri e.g.
Supposing you register for the contoso: protocol, if you issue a:
From within your app and your ActivationPolicy is Resume, you don't see anything to happen; with the default ActivationPolicy, you see your app restarted with the correct context instead.
Has anyone made any discoveries with this yet? Also hitting the same problem. The VoiceCommand isn't even passed in on the query string to the RootFrame_Navigating event.
I worked around launching the app (with FAR enabled) from the Lock Screen settings page of system settings, by intercepting it in RootFrame_Navigating, but having no joy using the same approach with VoiceCommand.
Chris Field - Mehdoh for Windows Phone
Yes, I have discussed this with Microsoft, and the behavior is reproducible. They said that having voice commands work as "deep links" was not necessarily their intention, but they were going to send the feedback to Engineering. We can help that along by voting on this issue I set up on the UserVoice site.
Ironically, the way to get the desired behavior is to turn FAR off, which is how I will be shipping my apps, so I can provide a consistent experience to my users.
- Proposed as answer by Robert McLaws [Work] Tuesday, January 01, 2013 12:48 AM