Bluetooth 4.0 support

Thread is closed for posting
4 posts, 0 answers
  1. Jorge
    Jorge avatar
    2 posts
    Member since:
    Mar 2015

    Posted 05 Mar 2015 Link to this post

    Hi , first of all congratulations for this project , it looks very promising .

    I looked into documentation searching for Bluetooth support , and i couldn't find anything .  Is there any way to access to Bluetooth 4.0 from nativescript ?

    Thanks for your support,

  2. Todd
    Todd avatar
    7 posts
    Member since:
    Jun 2012

    Posted 05 Mar 2015 Link to this post

    Thanks, Jorge. Thanks for helping us stress test the beta.

    TECHNICALLY, any native API can be accessed via JavaScript in NativeScript. That would include the native APIs in iOS, Android (and eventually Windows) for interacting with Bluetooth. I will have to defer to my more capable team members to give you an example of writing NativeScript JavaScript that would control an iOS or Android bluetooth SDK, but conceptually it can be done.

    As NativeScript matures, the "Telerik NativeScript Modules" (TNS) help provide the unified syntax sugar that hide the various platform-specific JavaScript APIs. This is what saves you from needing to know anything specific about the iOS/Android/Win API syntax. There is not a TNS Module today for bluetooth, but I expect there will be as more people begin exploring/creating modules.

    Until then, everything is possible, just takes a little more effort. Hope that helps.


  3. Jorge
    Jorge avatar
    2 posts
    Member since:
    Mar 2015

    Posted 06 Mar 2015 in reply to Todd Link to this post

    Ok , thanks a lot for your fast response ,

    An example of how can i add a new TNS module would be great, or at least which steps have to take into account. 

    Have a good day!
  4. Erjan Gavalji
    Erjan Gavalji avatar
    1455 posts

    Posted 09 Mar 2015 Link to this post

    Hi Jorge,

    There is an article (though really rough right now), explaining the creation of a new module to the cross-platform modules. 

    Kind regards,
    Erjan Gavalji

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top