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.

0
votes
0answers
9 views

NativeScript Vue - Store Login Session in Local Storage or Application Settings

I'm using NativeScript-Vue. My question is about store the logged-in user's login/profile state. I've seen two solutions: Using ApplicationSettings to store the user's auth data and loading the ...
0
votes
0answers
15 views

Uploading file inside webview is not working for android only while this is working in ios

tns info = 5.1.1 Uploading file inside webview is not working for android only while this is working in ios.I have tried some xmlit works. but when i go inside file upload the browse never works. I ...
0
votes
0answers
9 views

Nativescript GridLayout not showing all rows

I am trying to create a bottom navigation with Nativescript GridLayout, however, when rows is set like this: rows="*, 50*" it appears to be only showing the first row. rows="auto, 50" works perfectly ...
0
votes
0answers
21 views

NativeScript JavaScript modal dialog fails with ViewHierarchy error on iOS

I have a relatively simple modal dialog within a much larger NativeScript JavaScript app which when launched fails with the error message, CONSOLE ERROR file:///app/tns_modules/tns-core-modules/...
-3
votes
1answer
24 views

Use Openlayers in NativeScript Project

I am new to NativeScript and have knowledge of Angular. I am trying to insert a map to my mobile app with Openlayers. In Angular, in other words HTML, we can create a div and let openlayer draw the ...
0
votes
1answer
12 views

Listview throwing error when using if in v-template

If I try to create conditions in my v-template like if="transaction.id == 604" I get the following error: >System.err: Calling js method getView failed System.err: System.err: TypeError: Cannot ...
0
votes
1answer
20 views

What's the difference between application.start() and application.run()

I'm getting this message in my NativeScript JavaScript app: application.start() is deprecated; use application.run() instead If I simply replace application.start({ moduleName: "views/main-page" })...
0
votes
1answer
14 views

page.getViewById only works when called on page load

I'm trying to use page.getViewById(idName).text to get the text input into a text field, but it's not going so well. If I use it within the pageLoaded function, called on page load, it works just ...
0
votes
0answers
21 views

Can only retrieve ID from Firebase database

I am using NativeScript and the Firebase plugin so that I can retrieve inputted data by the unique ID. My problem is that I am only getting back the ID and not the data that's inside the ID. This is ...
0
votes
0answers
9 views

When the app starts - how is the default timezone set? (Nativescript)

When the app starts - how is the default JVM timezone set? I assume it get's the device's timezone (where ever they might be) - and that's what's returned by TimeZone.getDefault() I'm not getting ...
0
votes
1answer
6 views

Error calling a method on GAITracker through NativeScript

I'm trying to call the native GoogleAnalytics tracker in iOS using this code: (googleAnalytics.getTracker() as any).setValueForKey(value, (global as any).GAIFields.customDimensionForIndex(key)); (...
0
votes
1answer
13 views

How to create native popup menu to copy some layout content into clipboard

Could anyone suggest me some sample application or code snippets on how to implement such popup menu for iOS and Android?
0
votes
0answers
18 views

How to implement Login with Google in a Nativescript iOS app?

I'm trying to implement google's id provider login in Nativescript through the nativescript-social-login plugin, so far it works well in Android, but it doesn't work at all in iOS. Following the ...
-1
votes
0answers
17 views

How to set value that will prefilled on form i want to do for id

I want to create a edit form and sent the values prefilled on these for how can I achieve this with nativscript and angular js <StackLayout margin="10" verticalAlignment="center"> <...
0
votes
1answer
29 views
+100

NativeScript Vue - Conditional nativation based on user's login state

I'm using NativeScript-Vue. I have some pages that are protected (member-only). And I maintain my user's login data in localstorage. I have two questions: When a user opens the app, where in the ...
-1
votes
0answers
10 views

RadListView Header binding

I am using nativescript with angular. version: "nativescript-angular": "~7.2.0", Does anyone know why binding to a RadListView header using directive tkListViewHeader does not work? Binding works ...
0
votes
1answer
13 views

how to develop tvOS app using nativescript

I'm trying to build a tvOS and roku app with nativescript. I was about to start working on the tvOS app after I read this article https://www.nativescript.org/blog/running-the-nativescript-runtime-...
-1
votes
0answers
16 views

How can I use Angular Material in Nativescript app [duplicate]

Angular Material official docs says modern UI components that work across the web, mobile and desktop. I would like to use Angular Material and Flex Layout in NativeScript. I could not find sample ...
0
votes
0answers
11 views

How do we debug e2e scripts while running nativescript-dev-appium?

I have a running nativescript-dev-appium server. I need to debug my e2e scripts and want to add breakpoints on them.Can anyone please suggest how do I achieve it?
0
votes
0answers
26 views

Error: referenceError: ErrorEvent is not defined

I am getting this error when i am trying to get data from my json-server. baseURL is defined and is accessible eg by my browser so there is no problem on this end. Any suggestions welcome. code ...
-2
votes
2answers
23 views

Nativescript > Change webview src doesn't work

I'd like to change webview src when I click on a button. First, webview load a first URL Then on taping button, webview src are changing. As they are 2 buttons, there will be 2 url to change webview ...
0
votes
0answers
17 views

nativescript image upload to s3 encoding issue

I'm having issues uploading an image from Nativescript to AWS, and I'm pretty sure it's a configuration issue. select an image const context = imagepicker.create({ mode: 'single' // use "...
-3
votes
1answer
20 views

Nativescript android search bar not showing with list view

The issue with android search bar and list view while using with grid layout and stack layout. The search bar shows when list view is commented Action Bar Here <ActionBar title="Home" class="...
1
vote
0answers
22 views

Diagram created with Nativescript shows no values (=empty diagram)

When creating a diagram in Nativescript using the RadCartesianChart framework, an empty diagram is generated only --> the diagram does not contain anything anything representing the input data. In a ...
-2
votes
1answer
22 views

Overriding the Android Back Button in NativeScript for only one page

I'm using NativeScript version 5.2.4 with TypeScript, I am trying to handle back button to disable it, and I need to disable it only in one page, but it make the back button for a child page doing the ...
0
votes
0answers
14 views

nativescript pull side widget or new route

Hello im using nativescript vue. I want to achieve something like on added picture. on the side of screen could be button or could be nothing and if you pull right side of screen then it would appear ...
0
votes
0answers
14 views

Can I catch NativeScript marshalling errors?

Something was causing my NativeScript app to crash. I tracked it down to this line: completion(null, error); That line was in a JavaScript function in my app in a native object I created by using ...
0
votes
1answer
43 views

How do I resolve emulator java-related errors in NativeScript Skidekick

I am trying to launch a virtual device emulator on NativeScript Sidekick and keep getting "[19-04-16 12:57:55.059] Failed to start virtual device iPhone 6s. Errors: "Unable to execute avdmanager, ...
0
votes
1answer
14 views

Unable to get IOS headings

I am not able to get megnetic heading making a compass want to get exact angle.I have tried several code , but i not getting it ,I really want to know how to get this working locationmanager = ...
0
votes
0answers
16 views

nativescript-toast not showing on iOS

After I updated to the latest version of nativescript-toast it stopped working in iOS (In Android it's working fine). I mean, the toast are not being shown, while the app works as expected. In the ...
0
votes
0answers
8 views

how to display the value of the graph plotted

How to get the value of the graph plotted on top of the graph displayed? var viewModel = observableModule.fromObject({ categoricalSource: [ { Country: "Germany", Amount: 15, SecondVal: 14, ...
0
votes
1answer
48 views

I can't get images to render within jsPDF using NativeScript

Summary: Playground: https://play.nativescript.org/?template=play-vue&id=pntfZD&v=4 I'm using NativeScript (VueJS) with the following plugins: nativescript-share-file jsPDF base-64 I'm ...
0
votes
0answers
34 views

querying data from firestore through a searchbar

Am trying to query data from firestore through searchbar,i have names of cities already stored in firestore,,so i want to search for each city by name my HTML <SearchBar row="0" hint="Search" (...
1
vote
2answers
33 views

Is it possible to install multiple programs via script?

I need to re-create the development environment on my machine, and put exact applications on co-workers machine ( not in same office ). What We Need Installed So basically we need a NativeScript ...
0
votes
0answers
14 views

Nativescript webpacking outer asset undefined variable

I am trying to run my nativescript angular project with the '--bundle' but I can't make it work. It would give an error for my environments file: "TypeError: Cannot read property 'configKey' of ...
0
votes
0answers
15 views

nativescript RadDataForm tooltip

Hello im using nativescript vue dataform https://docs.nativescript.org/vuejs/ns-ui/DataForm/dataform-editors-providers like in this link and I got this code like below. You can see where is ...
0
votes
1answer
32 views

Nativescript vue tooltip use

I'm using nativescript vue I want to run this tooltip. code like in tutorial is not working: <Button text="Get Json Data" id="tool" ref="tooltip" @tap="getData" class="btn btn-primary m-t-20"&...
1
vote
1answer
25 views

Export current rendered view/template as a PDF with Nativescript-VueJS

Using NativeScript + VueJS, I'm trying to find a way to take a dynamic template that's rendered based on props and route data, and tap a button to save the "view" as a PDF to the filesystem. I found ...
1
vote
0answers
21 views

how to add subtitle in action bar in ios/andriod using nativescript with angular?

I need to add a subtitle in navigation bar. Already i have a back button, title and edit icon and below these need to add subtitle text using nativescript with angular for ios and andriod
0
votes
1answer
24 views

How change property from label in RadListView

I'm trying to access the property of the label in RadListView to change it. Depending on whether the are true or false, the color should change. I tried to get the reference with getViewById to ...
0
votes
1answer
17 views

NativeScript Upgrade steps failing with missing TypeScript and Webpack support scripts

I am trying to upgrade an older project to run with the latest NativeScript version. I am following the steps outlined in the NativeScript Upgrade page. As far as I can tell this project was working ...
0
votes
0answers
31 views

NativeScript getting error heap limit Allocation failed - JavaScript heap out of memory

I am trying to get .APK file from my Angular Project. As suggested in a blog, I did following. ng add @nativescript/schematics tns build android --bundle It generates .APK file which runs auto-...
-3
votes
0answers
29 views

Does anyone have experience creating a nativescript+angular (sqlite) quiz by user input(user inputs questions and answers)? [on hold]

I'm creating a mobile app with nativescript + angular which incorporates a way so that a user can create a multiple choice quiz. I've seen a few sqlite examples within android studio, but they are pre-...
0
votes
1answer
15 views

Nativescript Install Error Post Install script

I am fine running one of our current projects with Nativescript but when I try to install it on a new project using the following command: sudo ng new --collection=@nativescript/schematics the-juice-...
1
vote
2answers
64 views

Change statusbar font color

Is still possible to change statusbar color on certain page by using angular2/nativescript? I tried to use this way from docs but it doesn't work. import { topmost } from "tns-core-modules/ui/frame";...
-1
votes
0answers
27 views

NativeScript “tns run” generates a *ton* of TS syntax errors from Material and other packages

Running "tns run ios/android" with or without "--bundle" generates a zillion error messages like: IOS: platforms/ios/rushbowlsapp/app/tns_modules/@angular/material/schematics/ng-generate/tree/files/...
0
votes
0answers
20 views

Nativescript. 404 when trying to enable the Android AVD

So I'm following this guide: https://docs.nativescript.org/start/ns-setup-win Step 7.a says to execute this command: @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net....
0
votes
1answer
22 views

Nativescript Vue conditional v-template not working

I have a ListView which renders this: <ListView v-for="(item, index) in items" height="500"> <v-template v-if="index < items.length - 1"> <GridLayout rows="*, *"...
-1
votes
0answers
25 views

Picture selected have wrong order in nativescript app

In nativescript-vue android app, when I select Images from gallery it comes in order in which how they are appears in gallery. I want to show images in order which i am selected. How to do this in ...
0
votes
1answer
28 views

How to center rad data form text input?

I want to center align text in a rad data form because I have those requirements. The input must be centered. I've tried using css to do it by setting the text-align property. And I looked in the ...

http://mssss.yulina-kosm.ru