Integrating a Windows 8 plugin into a project

25 views
Skip to first unread message

Darren Bowers

unread,
Apr 17, 2014, 7:18:57 AM4/17/14
to phon...@googlegroups.com
I have been reading this blog post on creating native Windows 8 plugins http://www.risingj.com/archives/609 but cant find out how you actually integrate a custom WinJS/WinRT-only plugin (with proxy) into a Windows 8 phonegap application. I copied all of the files into my project and referenced the plugin JS, but then what do i do to enable it?

Do you have to use Plugman to install it? Because the Plugman install CLI doesn't have an option for Windows8.

Is there a simple guide on how to actually build/install/integrate a custom cordova Windows 8 plugin into a Windows Store app?

Cheers
Darren

Darren Bowers

unread,
Apr 20, 2014, 8:45:29 AM4/20/14
to phon...@googlegroups.com
If anyone is remotely interested, the answer lies buried in a batch file the tests folder on Git: https://github.com/purplecabbage/cordova-runtimecomp-echoplug/blob/master/tests/testW8Install.bat - This is so far the only example of anyone anywhere installing a plugin for windows 8 that I could find. Seems windows8 is a valid option for Plugman after all.

Someone on the Phonegap documentation team needs to pull their finger out because this has cost me countless hours of head scratching and trawling through source code...

purplecabbage

unread,
Jun 10, 2014, 6:33:33 PM6/10/14
to phon...@googlegroups.com
Glad you found it eventually. Yes, plugman supports windows8, as does `cordova platform add` and `cordova plugin add`
I will update the docs as well as update the instructions on my blog post, and the repo.

Cheers,
  Jesse
Reply all
Reply to author
Forward
0 new messages