visual studio 2015 - How can I develop a Cortana app in JavaScript? -


i develop cortana application in html/javascript/css. unfortunately, documentation pertaining cortana apps written c#/xaml.

to integrate cortana, need develop universal windows platform (uwp) app exposes "app service" integrates cortana.

in visual studio 2015 (or visual studio 15), create new project using javascript project template "blank app (universal windows)". find element tag application, , add following child element:

<extensions>   <!-- provide hook cortana ask app questions -->   <uap:extension category="windows.appservice" startpage="voicecommandservice.js">      <uap:appservice name="adventureworksvoicecommandservice"/>    </uap:extension>   <!-- enable deep linking app cortana -->   <uap:extension category="windows.personalassistantlaunch"/> </extensions>  

the file voicecommandservice.js serve entry point cortana. executed whenever cortana hands off request app, , you'll able task details windows.ui.webui.webuibackgroundtaskinstance.current.

for rest, follow c# documentation.

answer based on this cortana sample.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo