0

I was wondering just how much of an iOS and Android device can be accessed via NativeScript. Specifically, are there any limitations to what we can access and interact with, and if so, what are these limitations?

Reading through some of the docs, I can see we can access location and camera, but I'm wanting to know if we can see/use the likes of user settings such as font sizes, as well as peripherals, contacts list, etc.

Also, I'd like to know if we can create apps that are friendly to Assistive Technologies and that WIA-ARIA/WCAG compliant using element attributes such as role and describedby.

Many thanks

1 Answer 1

2

The beauty of NativeScript is that you can access the full native API.

When you're looking at the docs and see location and camera, that is because the Telerik guys and gals has written cross platform JS code to communicate with the native location/camera APIs of the platforms.

If you look at the code (here's the camera code for iOS) you can see that it's standard Javascript (well Typescript...) which communicates with the Object-C APIs.

You probably want to take a look at Chapter 6—Accessing Native APIs in the docs, and the blog post about using 3rd party modules (Cocoapods on iOS or Android Libraries).

To sum it up, if you can do it with Swift/Objective-C/Java code - you can do it with NativeScript.

I explained this in a seminar a couple of months back, take a look at this video, watch until about 19 minutes and you should get a hang of it.

Sign up to request clarification or add additional context in comments.

4 Comments

Thank you very much for the information. I watched your video and found it very informative.
I have a follow up question, if you don't mind. I'm on a Windows machine, and therefore can't emulate or build for iOS. Is there anything I can do without resorting to buying a Mac? :)
You can buy an online build service, such as Teleriks own telerik.com/platform#overview (More companies offers this service). If you're serious about iOS development you probably want to get yourself a Mac.
Hi again, I just wanted to ask about the last question in my original post concerning creating apps in NativeScript that are "friendly to Assistive Technologies and that WIA-ARIA/WCAG compliant using element attributes such as 'role' and 'describedby'."

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.