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
2 answers

Getting error when publishing iOS via nativescript tns command

When I try to publish using following command, it's giving me error. I searched around and didn't find anything on google. Command: tns publish ios --appleApplicationSpecificPassword --ipa
0
votes
0 answers

Problem with Sign-in to Nativescript app with google provider

I try to use google provider to log in to my angular nativescript app. My web app works properly, for mobile added SHA-1 to firebase console. I have two problems: After try to log in with google provider firebaseWebApi.auth().onAuthStateChanged…
Przemo
  • 477
  • 1
  • 7
  • 16
0
votes
2 answers

ios image picker delegates not triggering in nativescript

I'm writing nativescript plugin for image picker. I'm finished with part of android. Now, I'm writing code for ios. It's showing image picker dialog, but assigned delegates are not getting triggered. Please check my code below. import * as…
0
votes
1 answer

OAuth2 Plugin to login using refresh tokens

I have a mobile application where I am trying to authenticate the user using the nativescript-oauth2 plugin with custom providers using Azure B2C. My requirement is that I want to make the user login for the first time to the application using their…
0
votes
0 answers

Nativescript - Can't upload image to server

I can't upload an image to external server from my app. When I try do this, VSCode return: ERROR Error: Cannot convert object to Ljava/lang/String; at index 0 . I use nativescript-background-http plugin in my app. My code: private file:…
mark200
  • 47
  • 6
0
votes
1 answer

NativeScript-VideoPlayer Android local videos not displaying

Using the nativescript-videoplayer plugin with Angular I am able to view and play videos remotely and locally on IOS. However on Android I am only able to play remote videos. For local videos, the video player is displayed, but the time is at 0.00…
0
votes
2 answers

What will be Redirect URL of Azure Active Directory while setting up for nativescript mobile app

I want to login with office 365 in my mobile app(nativescript+angular). How to configure Azure Active Directory. What will be Redirect URL?
0
votes
1 answer

Nativescript IOS 13 ui-listview component not rendered

Hi guys I'm having problem with listview component on IOS13 I tried updating to the latest version but that doesn't work I fixed it by patching listview.ios.js, directly in node_modules Like suggested from comment…
0
votes
0 answers

How to format percent number with three significant digits in NativeScript?

I have a value from 0 to 1. I would like to format it with three significant digits as a percent. So for value = 1 it will be 100%, for 0.9563 it will be 95.6% and for 0.02641 it will be 2.64%. I found that in JavaScript this works fine: new…
0
votes
0 answers

Nativescript ios State Preservation and Restoration

Is there a way to setup State Preservation and Restoration for ios using CoreBluetooth in Nativescript? I'm using the nativescript-bluetooth plugin. From what I understand I will have to modify the actual plugin's code to be able to implement State…
0
votes
0 answers

Implementing native android .aar file or .aidl in Nativescript throws native calss object without access to methods

I have an Android SDk done with java whic I already converted to .aar file. I created a plugin and placed the aar file in App_Resources/Android/libs directory. In my index.js file, I have this var intent = new…
0
votes
0 answers

Firebase Nativescript Facebook Authentication onAuthStateChanged()

I have a Nativescript App built with Angular and I use the Nativescript Plugin Firebase: https://github.com/EddyVerbruggen/nativescript-plugin-firebase. When I authenticate with Facebook, it retrieves me the user data successfully, but the user does…
0
votes
1 answer

How to implement on-demand sorting of data in listview via nativescript-drop-down plugin?

I am creating a simple Nativescript app with a listview of items based off an array. I am having trouble grasping the Observable module/MVVM pattern. I am using nativescript-drop-down to provide a sort-by list in order to sort the data in the…
0
votes
1 answer

How to get variable data passed from java class to native script jar file using javaScript

This is how I pass data SharedPreferences pref = getApplicationContext().getSharedPreferences("FingerPrint", 0); SharedPreferences.Editor editor = pref.edit(); editor.putString("fingerImage",…
cshine
  • 27
  • 1
  • 10
0
votes
3 answers

Nativescript, how to use this java eventListener in Javascript?

I'm using NativeScript and have implemented Pusher-Java Library as a dependency, I can successfully connect and subscribe to my Pusher channel, but I have truble adding a SubscriptionEventListener to my channel, Here is my code which connects to…