This is a migrated thread and some comments may be shown as answers.

Bluetooth 4.0 support

3 Answers 114 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jorge
Top achievements
Rank 1
Jorge asked on 05 Mar 2015, 06:38 PM
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,

Cheers

3 Answers, 1 is accepted

Sort by
0
Todd
Top achievements
Rank 1
answered on 05 Mar 2015, 11:05 PM
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.

-T

0
Jorge
Top achievements
Rank 1
answered on 06 Mar 2015, 05:18 PM
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!
0
Erjan Gavalji
Telerik team
answered on 09 Mar 2015, 12:17 PM
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
Telerik
 

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.

 
 
Tags
General Discussions
Asked by
Jorge
Top achievements
Rank 1
Answers by
Todd
Top achievements
Rank 1
Jorge
Top achievements
Rank 1
Erjan Gavalji
Telerik team
Share this question
or