Questions tagged [nativescript]

NativeScript is an open source framework created by Telerik that makes native mobile app development easier for web developers. It enables developers to use JavaScript or TypeScript (with or without Angular or Vue) to build native mobile applications for iOS and Android. NativeScript apps render native UI components styled by a subset of CSS. Modules provide cross-platform native API abstractions. 100% of native APIs are available via JavaScript.

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

Create component in Nativescript Angular

How to create a component in Nativescript with Angular, using the console to get the files: component.component.ts component.component.html _ component.module.ts component-routing.module.ts and ...
nandofer's user avatar
0 votes
0 answers
3 views

Does Nativescript's FlexboxLayout support `gap`?

When using FlexboxLayout, it seems so easy to reach for gap to separate elements. However, it seems it isn't supported, as it doesn't appear in https://docs.nativescript.org/api-reference/classes/...
aryzing's user avatar
  • 4,990
0 votes
1 answer
19 views

Nativescript Vue v-show with transition

I am struggling with using of v-show with Nativescript. I was trying to make an animation described in https://www.nuvious.com/posts/nativescript-vue-transitions . When using v-show the element does ...
Luno's user avatar
  • 35
0 votes
0 answers
4 views

I have webpack.getAppPath error on old nativescript project

I am new to Nativescript and I get this error. what can I use instead of webpack.getapppath. TypeError: nsWebpack.getAppPath is not a function at module.exports (/Users/murataktay/Downloads/...
Murat Aktay's user avatar
-1 votes
0 answers
9 views

Nativescript Error when I want to run on Android emulator

the app is a bit old but I just want to run it. NativeScript error when I want to run on Android device. running code : ns run android -> Error: Unexpected token '.' Node: 12.19.0 npm: 6.14.8 "...
Murat Aktay's user avatar
0 votes
0 answers
24 views

How should the nativescript-oauth2 library be implemented for Google OAuth2 sign-in for a NativeScript app running on iOS?

I have implemented the nativescript-oauth2 library to perform third party sign-ins with Sign in with Google in a NativeScript Angular app. The sign-in process works correctly when running on an ...
ESP255's user avatar
  • 1
-2 votes
0 answers
18 views

Navtie script setup

@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new- object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%...
Govind's user avatar
  • 1
0 votes
0 answers
13 views

ReferenceError: NewRelic not defined while implementing custom NativeScript Plugin

So, i was creating a custom NativeScript Plugin to implement NewRelic for my iOS application. Testing the plugin in the NativeScript Plugin Seed enviroment seems to work fine. After i added the plugin ...
ImKoFe's user avatar
  • 1
0 votes
0 answers
20 views

Android Native script Build error with Unable to apply changes on device: emulator-5554. Error is: Invalid Version: null

0 I have Hybrid App with Nativescript, and upgraded the Angular version from 14 to 16.2 when I take Android build i am getting this bellow error. When I try run the build i am getting below message `...
Gayathri Mohan's user avatar
0 votes
0 answers
21 views

Build Failed Nativescript with error of metadata

I have hybrid app with NativeScript and upgraded the Angular version from 14 to 16.2. When I take iOS build I am getting this below error. When I try to run the build I am getting below message: ...
Gayathri Mohan's user avatar
0 votes
0 answers
14 views

can we debug native script mobile app on chrome dev tool?

I working on mobile application and using nativescript for that. I'm mainly using ios platform. I want to know is there any way to debug this app on chrome developer tools ? I need to check network ...
Anamika Singh's user avatar
0 votes
0 answers
13 views

Layout Issue on iPhone device

I am getting an odd issue with a form layout on iPhone. I am using an iPhone 11 running iOS 16.6. The form elements are inside a StackLayout which is inside a GridLayout which is inside a ScrollView. ...
chakotha's user avatar
0 votes
0 answers
34 views

Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException Error calling module function NativeScript

I'm trying to upgrade my nativescript app from version 6 to 8 built on angular, i have moved my app-routing.modules accordingly { path: APP_ROUTES.LOGIN, loadChildren: () => import( "~/app/...
Atiq Ur Rehman's user avatar
0 votes
0 answers
32 views

How to resolve this 'failed to load XML file' error occurred while running my nativescript project?

If I run my project by 'ns run android', I obtain the following error: FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':verifyReleaseResources'. A failure ...
Maxise's user avatar
  • 1
0 votes
0 answers
42 views

CocoaPods installation error: WARNING: CocoaPods is not installed or is not configured properly

I'm trying to do env setup for native script: https://docs.nativescript.org/environment-setup.html#macos-ios After running sudo ns doctor ios, I'm getting below error: ✔ Getting environment ...
Anamika Singh's user avatar
0 votes
1 answer
63 views

Nativescript : IOS App crashes when versions are updated in package.json

This is my configuration - MacOS - Ventura 13.5, Xcode - 14 This is the package.json of my native script application which is working fine with no issues. { "name": "mytestapp", "main": "./...
Pein's user avatar
  • 433
0 votes
0 answers
28 views

Problems with Sdk path or Gradle in Nativescript 8

A while ago I was testing version 7 with success, but now with version 8, AVD cannot be installed separately from Android Studio and I see that it generates a different directory structure than ...
jonabasque's user avatar
0 votes
0 answers
16 views

tns debug/build android returned with unexpected error

Before I proceed, let me explain that I am recently employed into this new company as a junior IT support. I mainly do hardware with very2 little programming knowledge. Recently my company upgraded to ...
Abam Coil JB's user avatar
0 votes
0 answers
17 views

NativeScript RFID Plugin for Android

I want to know if any NativeScript Plugin is Available for Zebra RFID Devices, I am not getting any Plugin Related to RFID at the Nativescript developer platform, Please let me know if you have any ...
InsideTech21's user avatar
0 votes
0 answers
23 views

NativeScript script try to modify Node.JS public directory and failed - Error: EPERM: operation not permitted

I try to start Github example from there https://github.com/NativeScript/nativescript-marketplace-demo and unfortunately failed. First message I received was "The current application is not ...
Viacheslav Dev's user avatar
0 votes
0 answers
17 views

Nativescript 8 - prevent WebView from opening external apps

I am building a Nativescript 8 Core app that has a WebView where the customer can navigate to different sites. Can I prevent the WebView from opening an external app when the customer lands on a URL ...
dpdragnev's user avatar
  • 2,011
0 votes
1 answer
49 views

How to regain acccess in read/write to download directory in Android Typescript Nativescript 8.5.3 and compileSdkVersion 33?

Since upgrading my Nativescript installation, the permissions don't work anymore on the storage. Previously, i use the old android.Manifest.permission.READ_EXTERNAL_STORAGE and android.Manifest....
BenoitB's user avatar
  • 31
0 votes
1 answer
36 views

Android gradle build fail with BindException when VPN turned on

I have VPN on my computer and when I try to build android, specifically from native script, it will show java.net.BindException: Cannot assign requested address: Cannot bind. When I tried ./gradlew....
Nay Min's user avatar
  • 85
0 votes
0 answers
19 views

Using FontAwesome in Svelte Native dynamically

I would like to do something like this: <script lang="ts"> const icons = { bars: "&#xf0c9;" }; </script> <page> <actionBar> <...
eltiare's user avatar
  • 1,817
0 votes
1 answer
28 views

Angular-NativeScript unknown HTML tags, properties (WebStorm)

I've recently started a project in WebStorm making an Angular-NativeScript app, but I am getting errors on tags that should be recognized by NativeScript, as well as errors on attributes and ...
Mint's user avatar
  • 13
0 votes
0 answers
20 views

how to import css file in nativescript-vue project?

i'm stuck with this... i don't know to import my scss file in my nativescript-vue project i tried with require('style.scss') with nativescript-dev-sass i copy paste ns doc https://v7.docs....
mexpetr2's user avatar
0 votes
1 answer
62 views

Installing NativeScript environment, issue with cocoapods on M1 mac in 2023

I am having issues with installing NativeScript. My machine uses a M1 chip, I'm reading M1 and cocoapods have issues. Other SO answers are not fixing the issue, and some are outdated. Hoping we can ...
Adamf's user avatar
  • 36
0 votes
0 answers
46 views

Android MediaPlayer is micro pausing every 20 seconds

I'm trying to play audio via a url but Android MediaPlayer is micro pausing every 20 seconds. I've tried multiple internet connections and the issue is pretty consistent. Local files do not have this ...
Jammer's user avatar
  • 1,548
0 votes
0 answers
20 views

NativeScript: Whenever I add a local plugin that I built in native script project and then run it in android there exception occurs

When I build native script project and run the project on android then there is no issue. But when I add my local plugin then following issue occurs: System.err: An uncaught Exception occurred on &...
Vikrant Kunwar's user avatar
0 votes
0 answers
13 views

Nativescript app showing scanty/few ui elements on ios emulator

After running my app on android emulator it renders correctly but on ios emulator I have a scanty ui screen. Please what could I be doing wrong ? I started the app using ns run ios. But then i was ...
Ola Bima's user avatar
0 votes
0 answers
20 views

Nativescript 8.5 'env' undefined

I have an application that builds successfully but crashes on launch. This project was migrated to NS 8.5 from TNS 6.5. It's relatively small, imports have been updated along with other typical issues ...
Devin Gray's user avatar
0 votes
0 answers
30 views

Add Missing Android Platform

There is functionality in Android API level 30 that I need to use in my Angular project. I'm sure this is as simple as a NPM command for tns-platform-declarations but I just can't seem to come up with ...
Don Knisley's user avatar
0 votes
1 answer
26 views

NativeScript 8 Angular 15 TextField Model Binding missing last char

I have created an NS Angular Hello World project by running ns create demo. I have just added this to the item-details html: <TextField [(ngModel)]="demo"></TextField> <...
Arco Voltaico's user avatar
0 votes
0 answers
25 views

FontAwesome Icons Not Displaying in Nativescript (Angular) App in Preview Mode?

I am working on an app in Nativescript Angular. I created the app using the template ns create my-drawer-ng --template @nativescript/template-drawer-navigation-ng After creation of project, I ran &...
Vijay Kumar's user avatar
0 votes
0 answers
12 views

NativeScript videorecorder, How to add description tag?

How I can add a description tag to the video file captured with nativescript-videorecorder plugin? Or probably better to use another plugin? I'm expecting to get a video file stored on the phone with ...
Pavlo Naumenko's user avatar
0 votes
1 answer
24 views

NativeScript: Format long text, especially an ordered list

We are developing a mobile app using NativeScript 8 with Angular. We want to display long formatted texts like our terms and conditions right in the app, but formatting those long texts is quite ...
Subsurf's user avatar
  • 1,276
1 vote
1 answer
42 views

Nativiscript App rejected on PlayStore, not compliant with Google Play Policies (MANAGE_EXTERNAL_STORAGE)

We develop a mobile app with NativeScript 8.5 and encounter an issue when trying to publish on Google PlayStore. The app is rejected because it ask permissions MANAGE_EXTERNAL_STORAGE, which is ...
David Jourand's user avatar
0 votes
0 answers
28 views

Nativescript Angular Project not running after plugin-filepicker installation

My Android NS app isn't running since I added the nativescript-plugin-filepicker plugin. I see that with each build, the FragmentClass.java in platfroms is being recreated. I tried cleaning, rerunning ...
Archimedes's user avatar
0 votes
1 answer
20 views

Nativescript Background Image

I'm trying to put a background image using CSS. What am I doing wrong? Here is the HTML: <Page backgroundImage="coverImage"> <GridLayout> <!-- <page-router-...
Gustavo Gonçalves's user avatar
1 vote
0 answers
46 views

@nativescript/imagepicker - TypeError: Cannot read properties of null (reading 'getName') on Android when picking a photo

I've migrated from https://www.npmjs.com/package/nativescript-mediafilepicker to @nativescript/imagepicker and having issues with it on Android platform when picking images. Below is my config ...
Andrew Mykhalchuk's user avatar
0 votes
1 answer
29 views

Nativescript - getting rid of a ios build warning

When I build my app for ios - I'm getting a bunch of warnings similar to below. Where do I set this IPHONEOS_DEPLOYMENT_TARGET variable? [snipped]/Pods.xcodeproj: warning: The iOS deployment target '...
dashman's user avatar
  • 2,858
0 votes
0 answers
53 views

angular natives script solution not running in new xcode version

I'm trying to run the existing angular native script solution in bellow environment. I'm getting the error while running it, please help me on resolving this issue. Mac Os: 13.3.1 xCode: 14.3 Node: ...
Manikanta Sayana's user avatar
0 votes
0 answers
14 views

How to use the auth emulator for nativescript firebase

I've got the auth system set up on nativescript. When I try to use google signin, though, it doesn't let me use the emulator like I usually can on the web. Here's the code I'm trying to use: const ...
Morgan's user avatar
  • 11
-1 votes
1 answer
32 views

NativeScript Command failed

Command failed: ruby -e "require 'xcodeproj'; sourceConfig = Xcodeproj::Config.new('/Volumes/Macintosh HD - Data/WORK/ns-js/platforms/ios/plugins-debug.xcconfig') targetConfig = Xcodeproj::Config....
Maksym Globa's user avatar
0 votes
0 answers
29 views

NativeScript font size very small in preview

I'm trying out NativeScript for the first time, creating an iOS app based of what I currently have created in Angular for web. To preview the app I'm using the ns preview and I'm not sure if it's a ...
unit's user avatar
  • 11
0 votes
1 answer
29 views

Nativescript 8.5 android and ios app size is > 200mb. is it ok?

After switching from ns 7 to ns 8.5, the size of the application has grown by 2 times, given that the application code has not changed at all. This is fine? And if not, what can you please tell me how ...
Khalil's user avatar
  • 47
0 votes
0 answers
19 views

how to pass an object in nativescript-dropdown & get the selected index & display the value?

I'm trying to use dropdown in nativescript-angular. So for that i've added the plugin nativescript-drop-down.link But i'm facing problems in case of sending objects as items & customise the items &...
Jahan28's user avatar
0 votes
1 answer
88 views

Nativescript Vue migration from 7 to 8.5.3 (Android 8.5.0) build error

I'm trying to migrate from NS 7 to NS 8.5.3 with android 8.5.0 webpack version is 5.0.14 Seems like some problem with vue-compiler I'll be very thankful for any help System.err: TypeError: Cannot read ...
Khalil's user avatar
  • 47
0 votes
1 answer
27 views

NativeScript Appim ERROR: This console is not interactive! Please export env PROJECT_TYPE

I have an error installing nativescript-dev-appium module in Windows 10 and NativeSript 8.2.0 npm ERR! code 1 npm ERR! path [Path]\node_modules\nativescript-dev-appium npm ERR! command failed npm ERR! ...
Augusto Soria's user avatar
0 votes
0 answers
195 views

Axios + NativeScript 8 + Vue-native. TypeError: Cannot read property 'env' of undefined

I am new to programming. I am creating an application on NativeScript 8. After I added the axios library to make a request to the server, a problem arose. ERROR in ./node_modules/form-data/lib/...
Lol Master's user avatar

1
2 3 4 5
146