Questions tagged [nativescript-plugin]

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.

249 questions
0
votes
1 answer

How to get data from push notification response in ios by using Nativescript

How to retrieve and handle the payload data from the app in background & foreground in iOS. I got the push notifications working, but I don't know how to extract the response. notificationCallbackIOS: (message: any) => { console.log("Message : " +…
0
votes
1 answer

NativeScript Geolocation fails "An uncaught Exception occurred on "main" thread. com.tns.NativeScriptException: Calling js method onClick failed"

I am having trouble when accessing the GeoLocation plugin on Android. I have a button when clicked in gets the GPS location of the device, but when this button is clicked the following error occurs (Locations Services & Storage Permissions are given…
WMRamadan
  • 974
  • 1
  • 11
  • 25
0
votes
1 answer

Generate EC keypair for iOS in NativeScript plugin

Preamble: I am trying to create an elliptic curve key pair in my NativeScript plugin (thus I am forced to use Objective-C) for signing and verification purpose. At first I want to say that the presented state below is the result of a lot of tries…
David Artmann
  • 4,272
  • 1
  • 16
  • 24
0
votes
1 answer

Nativescript plugin - Communication with third party native library

quick help if you can. Trying to implement calls to third party native function that accepts an object that has to implement a certain interface with a callback function. How exactly would you create an object like that on the Nativescript side and…
nunob
  • 592
  • 7
  • 24
0
votes
1 answer

NativeScript Looks for custom plugin in the wrong directory

I recently attempted to install a third party plugin: https://github.com/bradleygore/nativescript-materialdropdownlist and followed the README in order to use it. Nothing seemed out of the ordinary until I went to run my application and I ran into…
James Gilchrist
  • 2,242
  • 3
  • 20
  • 35
0
votes
1 answer

How to remove sass plugin from Nativescript?

I did tns install sass and now I want to remove it. I tried tns plugin remove nativescript-dev-sass and tns plugin remove sass with no success! How can I get rid of it? It is really annoying me and I don't want to use it. when I do tns plugin I get…
0
votes
1 answer

How to integrate angular2-froala-wysiwyg npm plugin with Nativescript Angular2 app?

I need to provide rich text editor UI in my Nativescript Angular2 app. I have searched and got the followed link. Is it possible to integrate angular2-froala-wysiwyg npm plugin with Nativescript Angular2 app? angular2-froala-wysiwyg -…
Kumaran
  • 135
  • 3
  • 12
0
votes
1 answer

Is it possible to use the third party plugins or modules which feature or plugins are not available in Nativescript official plugins?

Is it possible to use any third parties plugins which features are not avail in nativescript official plugins. Like Angular-trix for angularjs- "http://sachinchoolur.github.io/angular-trix/" If it is possible means how should i achieve? Thank you…
Kumaran
  • 135
  • 3
  • 12
0
votes
1 answer

NativeScript / Typescript / Firebase Plugin getting and using data when singleEvent is true

I'm using the plugin for NativeScript and Firebase (nativescript-plugin-firebase) to help code the backend of a mobile app that I'm working on. I have a scenario where I'm using the firebase.query, and then using it with the SingleEvent set to true…
0
votes
0 answers

nativescript-geolocation "getCurrentLocation" function is giving error in nativescript 2.5.0(IOS)

I am working on a nativescript-Angular2 app. I'm trying to use nativescript-geolocation plugin to fetch the user's location. But when I am calling the "getCurrentLocation" it is giving error, saying "New location is older than requested maximum…
0
votes
1 answer

How can I use NativeScript 3 to capture image and send to a remote server

I'm new to NativeScript and I'm trying to capture an image with the camera module (this works fine), and convert it to base64 (this is not working) and POST to server. I've googled for days. Any help you can lend would be immensely appreciated. I've…
Jrhd437
  • 29
  • 7
0
votes
0 answers

How do I make the replacement of the Propertymetadata class with its new replacement in NativeScript 3.0?

I am studying how to create plugins, however the plugin I chose is not compatible with version 3.0 of NativeScript, on that I am trying to migrate it to this new version. At the moment I'm having a hard time finding which class I should use to…
Delfino
  • 557
  • 10
  • 24
0
votes
2 answers

nativescript image-picker not working

I'm using the plugin image-picker for nativescript and I copied the example code to see how it works and to adapt it to my code. But the code doesn't work. When I tap the button it's supposed that the screen gallery from my device should be opened,…
-1
votes
1 answer

Is there a plugin that will let me communicate with a PocketBase database?

I'm trying to connect with a running PocketBase database. Normally, I would use their Javascript SDK to achieve this, but the package does not get shipped to the mobile device during the build process. This means I either have to build my own set of…
-1
votes
1 answer

didUpdateHeading method not getting called in NativeScript 8.2

I am trying to get the heading value in nativescript iOS application using CLLocationManager, CLLocationManagerDelegate. LocationService.ts import { Injectable } from "@angular/core"; @Injectable() export class LocationService { private…
1 2 3
16
17