NativeScript Plugins play a key role in NativeScript applications development, by adding features to the main framework. Frequently {NS} Plugins may expose some of the native APIs on platforms such as iOS & Android, while wrapping those for ease of use by JS/NS developers, or otherwise enhance NativeScript applications' features. They may also include certain libraries, or pre-made components, or otherwise packaged utilities for NativeScript.
Questions tagged [nativescript-plugin]
249 questions
1
vote
1 answer
Creating NativeScript Plugin using iOS SDK results in 'Undefined symbols for architecture' errors
I am trying to create a NativeScript plugin in order to integrate an iOS SDK of a bluetooth printer to a NativeScript application.
Here is the link to the SDK as Static Framework
I keep getting the following error with the army7 part showing…

HakBon
- 63
- 1
- 9
1
vote
1 answer
How to call javascript function from java?
I have a native android library, Which expects a java function which works as an event. But in my nativescript plugin, I want to pass javascript function to the library so that library events are fired in javascript runtime.

Mehul Prajapati
- 1,210
- 2
- 11
- 29
1
vote
1 answer
How to display image taken from camera plus plugin right below the screen
I'm trying to display image taken from camera plus plugin right below the screen.
For that I'm trying the event named 'photo Captured Event' and realized that the event itself was not triggered. I just put an alert message inside it and confirmed…

modi
- 57
- 8
1
vote
0 answers
Has anyone faced issues with nativescript plugin calling android native code?
I am working on a nativescript plugin around a native Android SDK.
I have to subclass a native android abstract class
Given below is the way I did this: -
declare var com: any;
class MyCallBackClass extends com.xy.ab.mn.somesdk {
…

Jubin Jose
- 33
- 3
1
vote
1 answer
How to edit NativeScript-Angular RadDataForm UIStepper on iOS?
In a NativeScript-Angular app, I’m trying to style a RadDataForms TKPropertyEditor. For the Stepper Editor on iOS I want do increase the distance between the controls and the displayed value, but I can't find a way to access them.
I'm using…

soup
- 13
- 5
1
vote
1 answer
nativescript-websocket how to create "Advanced Interface" in Angular Nativescript
I'm not able to create the "Advanced Interface" of nativescript-websocket in Angular/Typescript, I need it to use a custom sslFactory to trust all certs.
The problem is that nothing happens and I can't see any error messagge when I'm trying to…

Massimo Magliani
- 649
- 2
- 7
- 17
1
vote
3 answers
Nativescript Algolia iOS Build Fail
I am trying to build nativescript-algolia but it fails on iOS. This is the error I am getting:
[!] Unable to determine Swift version for the following pods:
- `AlgoliaSearch-Client-Swift` does not specify a Swift version
and none of the targets…

keerl
- 116
- 1
- 11
1
vote
0 answers
NativeScript Error: java.lang.NoClassDefFoundError
I've made an android app (native java) into a library with an .aar file. I put it inside App_Resources/android/libs and I'm trying to access a class, but I get this error:
JS: ERROR Error: Uncaught (in promise): Error:…

AndersonL
- 13
- 4
1
vote
1 answer
Nativescript & iOS DeviceCheck API
My team has a nativescript-vue application that is targeting the iOS platform. We were trying to uniquely identify the iOS device uuid via nativescript-uuid, but that appears to no longer supported. What is the best approach to use the DeviceCheck…

sonoerin
- 5,015
- 23
- 75
- 132
1
vote
1 answer
Why doesn't couchbase plugin load?
I use the latest NativeScript Sidekick and Preview for developing (vanilla, pure JS) apps, recently I installed Couchbase Lite Plugin https://market.nativescript.org/plugins/nativescript-couchbase
When I write var couchbaseModule =…

Microblaze
- 15
- 1
- 5
1
vote
1 answer
I am using cordova-plugin-facebook4 in my nativescript app. When I build the application, it is showing the variables APP_ID and APP_NAME are missing
enter image description hereI want to log the App Events of my application in Facebook analytics. My App is built on NativeScript. I could not find a plugin to log the events in facebook analytics. So, I am using cordova-plugin-facebook4 to log app…
1
vote
1 answer
NativeScript Google maps java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/ProtocolVersion
I switched to {N} 5.0, now i have an issue with nativescript-google-map-sdk,
same error as here:
Android Google maps java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/ProtocolVersion
The issue with Android API 28, there is a…

dev dev
- 31
- 4
1
vote
1 answer
Get error after install nativescript-plugin-firebase when build for android using nativescript sidekick
I installed nativescript-plugin-firebase step by step according to the document, but every time when I use sidekick on MacOS to build or run the app for android. I always get the error, the log is below:
[18-11-08 09:36:09.139] NativeScript…

hui
- 101
- 8
1
vote
1 answer
NativeScript iOS Delegate Transpilation error (Can't find variable: __metadata)
I'm attempting to implement an iOS delegate in a NativeScript plugin and am getting an error:
Terminating app due to uncaught exception 'NativeScript encountered a fatal error: ReferenceError: Can't find variable: __metadata
My original code is:…

Frank
- 399
- 4
- 16
1
vote
1 answer
NativeScript Passing UIViewController to native iOS method
I'm attempting to create a new plugin for Square Reader following the nativescript plugin seed (iOS instructions https://docs.connect.squareup.com/payments/readersdk/setup-ios). The last step is to pass in a UIViewController object so it can display…

Frank
- 399
- 4
- 16