1

Can I use the native JAVA/SWIFT code in NativeScript? I want to store the cookies into the cookie manager, but there is no plugin provided. So, is that possible to use the native code directly into NativeScript or I've to create a plugin myself for this task.n

1 Answer 1

4

The answer is yes. You can write with native (iOS & Android) language in NativeScript which is the biggest benefit of the {N} framework but you can use Objective-C and Java not so sure about Swift (there are some ways to do so read here). I would recommend you to read this articles regarding the iOS and Android runtimes in NativeScript:

Here are some examples:

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

4 Comments

is that the examples where we can use self created classes into NativeScript?
Please take a look at the full documentation here: docs.nativescript.org/runtimes/ios/Overview.html , you will find docs.nativescript.org/runtimes/ios/how-to/ObjC-Subclassing.html and docs.nativescript.org/runtimes/ios/how-to/… and many more resources regarding how to use native code in NativeScript.
If this is not what you are after I suggest you to edit your initial post to indicated what exactly you are asking and trying to do.
I was trying to find the tns-android (as described in the link you shared for android earlier) but couldn't find that, do you've any idea where to use that folder.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.