locked
WinJS Capabilities

    Question

  • Hi,

    I am new to the WinJS / HTML 5 development, I know that we can build native App using only WinJS and HTML 5, but can the these App access hardware capabilities exactly like those built using C#?

    In another word, does WinJS have functions to reach device features (camera, disk, network .. etc) just like the C# ?

    Regards,

    Tuesday, October 14, 2014 12:34 PM

Answers

  • HI,

    WinJS can access most things that apps written in C# can. Personally I have only developed apps that access and make use of things like a phones GPS sensor, camera, light sensor, storage and credential locker etc. A great place to start is http://msdn.microsoft.com/en-us/library/windows/apps/br229565.aspx

    As you can see from the attached screen shot, the menu covers many aspects of developing with WinJS

    Good luck!

    Tuesday, October 14, 2014 1:49 PM

All replies

  • HI,

    WinJS can access most things that apps written in C# can. Personally I have only developed apps that access and make use of things like a phones GPS sensor, camera, light sensor, storage and credential locker etc. A great place to start is http://msdn.microsoft.com/en-us/library/windows/apps/br229565.aspx

    As you can see from the attached screen shot, the menu covers many aspects of developing with WinJS

    Good luck!

    Tuesday, October 14, 2014 1:49 PM
  • Thank you so much Yolo. As WinJS becoming cross platform, do you know if this is still valid when developing for Android and iOS. I mean can the library still access the iPhone & Android device capabilities ?

    Regards,

    Wednesday, October 15, 2014 8:05 AM
  • Hello,

    No problem, hope it helped. As far as I know, although WinJS is now open source, it can't be used on iOS/Android for accessing device hardware or advanced features like GPS sensors, however I could be wrong. If you want a definite answer it might be worth heading over to https://dev.windows.com/en-us/develop/winjs if you haven't already.

    From there you can visit the WinJS online editor (https://try.buildwinjs.com/#listview) which exposes all the open source goodness of WinJS for you to play around with in the browser.

    From what I understand, outside of the Windows platform, WinJS is a library to facilitate creating a UI and doing things like binding data to list views etc. It does include some of the nice features like rating controls etc.

    If though, you are looking to create something cross platform that can access device hardware and is written in HTML5/Javascript, probably your best bet right now is still to go to something like Cordova http://cordova.apache.org/

    Sorry if this is a repeat of things that you already know.

    Thanks

    Wednesday, October 15, 2014 12:50 PM