Newest 'nativescript' Questions - Stack Overflow

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.

-1
votes
0answers
3 views

Nativescript Grocery Tutorial Throws Error on NativeScript Playground: how to fix?

When I try making the changes (a) and (b) listed in nativescript grocery app building tutorial and try to preview it using nativescript playground/preview apps, it gives me a long list of erro ...
0
votes
0answers
8 views

How do I troubleshoot webpack --env.aot issues?

I'm trying to setup my app to use aot and also uglify. I can compile it using --bundle, but as soon as I add --env.aot or --env.uglify I can't get it to compile. With AOT I've quashed almost all of ...
0
votes
2answers
19 views

How to create a custom navigation bar in NativeScript?

I am new to NativeScript and experimenting with it a little via the playground. There are some UIs that i'd like to implement and don't see samples of and I was wondering what would it take to ...
1
vote
0answers
22 views

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 ...
0
votes
0answers
10 views

Mapbox show location Paris

I get correctly coordinate from this function in Map.ts: populateForm() { let pharmaId = this.route.snapshot.params["id"]; this.pharma.pharmagetbyid(pharmaId ).subscribe( pharmadata=&...
0
votes
0answers
13 views

Using twilio-chat with NativeScript and Angular

I have the folowing chat service: import { Injectable, EventEmitter } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import * as Twilio ...
0
votes
2answers
43 views

Nativescript build fails with error “Manifest merger failed ”

I am trying to debug my Nativescript app using command 'tns debug android' but build process keeps failing. Error stack trace: Attribute application@appComponentFactory value=(android.support.v4....
1
vote
1answer
21 views

How to stop video playing in background Nativescript -angular

Im using video in my project ,but video is playing in background ,When i move to another component.This problem occurs only in ios ,not in android Html <VideoPlayer src="{{videoUrl}}" height="300"...
2
votes
1answer
28 views

How to re-factor this NativeScript simple image css swapper

I have a page that displays 3 images, and the user is expected to tap on one, then tap the Next button to continue. So basically, I am simply adding some CSS to the image when it is tapped. BUT... ...
1
vote
1answer
31 views

How to get user location updates in nativescript when the app is suspended (android)?

I am using the plugin nativescript-geolocation, and I'm trying to record user locations while the app is suspended. I am making a navigation style app that needs to be able to monitor the user's ...
1
vote
0answers
26 views

Execution failed for task ':app:transformClassesWithMultidexlistForDebug'. ( INotificationSideChannel$Stub$Proxy ? )

My Nativescript-Vue project has stopped working without reason, i don't know why. The gradle build is crashing with this error : D8: Program type already present: android.support.v4.app....
0
votes
1answer
22 views

native script , How to fix problems with navigation in mobile apps?

I have an application in nativescript which when you are browsing, has delay. then its operation is correct but then it stops when you are navigating. I do not know the reason for the delay of the ...
0
votes
1answer
26 views

Expected 2 arguments, but got 1.ts(2554) core.d.ts(8064, 47): An argument for 'opts' was not provided

Error Expected 2 arguments, but got 1.ts(2554) core.d.ts(8064, 47): An argument for 'opts' was not provided. Code is from NativeScript Marketplace https://play.nativescript.org/?template=play-ng&...
-2
votes
2answers
16 views

How to crop image in NativeScript Angular [on hold]

I want the user to upload profile pictures. The profile pictures need to be a square. I want the user to crop their image to a square after they upload an image.
0
votes
2answers
29 views

Nativescript Vue Core Modules

I'm having trouble understanding how to use the Framework modules in nativescript-vue. For example this module, is what I am trying to understand how to use: https://docs.nativescript.org/ns-...
0
votes
0answers
16 views

tns preview works but tns build android --bundle

I have created few components with NativeScript/Angular and working as expected with tns preview. When I build it with tns build android --bundle, it builds .apk but when Install and open on my ...
0
votes
0answers
27 views

How to have multiple Angular apps in NativeScript

At my company we currently have a single project with multiple apps for each brand. Each app shares the same code base, but during the build process, only the configuration and assets (images, ...
0
votes
0answers
11 views

Nativescript firebase plugin hooks not working

This plugin has some hooks for after-prepare action called firebase-build-gradle.js but it is not firing right and required dependencies will not include to gradle file correctly. Even I tried to ...
0
votes
1answer
32 views

Handling andoid back button in nativescvript-vue

I'm trying to build an application in nativescript-vue which has audio contents. I've a function which is being called when the page is mounted(): this.player = new TNSPlayer(); const playerOptions = ...
-1
votes
0answers
12 views

Nativescript RadAutoComplete doesn't show lists by a middle word

I'm using RadAutoComplete in order to search in a list. for example, this is my list: Rolex | Date Just | Man Rolex | Yacht Master || If a user types Rolex the list will show correctly but he types ...
0
votes
0answers
19 views

How do I get the height of an image or GridLayout after it displays

I'm using angular. I have an image carousel. I have two gridlayouts, one on top of the other. The top grid has the naviagation buttons. I want them to be positioned in the center of the image top to ...
4
votes
5answers
199 views

AndroidX suddenly causing build failure for NativeScript

All of a sudden, with no changes to my dependencies, I am now getting the following error: Execution failed for task ':app:processDebugManifest'. > Manifest merger failed : Attribute application@...
1
vote
0answers
38 views

Can't video record through native script on IOS using the nativescript-videorecorder plugin

I am trying to record video through nativeScript using the nativeScript-videorecorder plugin. https://github.com/triniwiz/nativescript-videorecorder I have initialized the recorder just like it ...
-1
votes
2answers
32 views

Not getting http request response

I'm trying get the response from a php file but not getting anything. This is the http function which i have written to read data. The url is real and working one can test if needed. exports....
-1
votes
2answers
36 views

Search data using Nativescript

I get correctly all data from this function: getallpharma() { this.pharma.mobile_base_pharmacyGetAll().subscribe( items => { this.items = items; }, err =>...
0
votes
1answer
24 views

Multiple layouts over google maps

i was wondering is it possible to create something like this? https://prnt.sc/o3b62o google map on full screen and 2 buttons. (one top and one at the bottom) I have version with grid layout, but then ...
0
votes
1answer
39 views

How to launch android plugin app within nativescript

I'm trying to launch Android app that I've packed inside a plugin for nativescript I followed this tutorial and I imported everything correctly, but I can't find anywhere how could I launch the ...
0
votes
1answer
35 views

NativeScript Core: I'm trying to change the size of the TabViewItem icon, and can't get figure it out

I'm adding in icons to each of my tabs in my NativeScript project, and I reference the png images properly, but my images are a bit oversized. I'm trying to add styling and can't figure out how to ...
1
vote
0answers
18 views

Field validation in RadListView

When I validate my fields in RadListView, I'd like to be able to present a message to the user about validation errors. Using this example project, I get either overlaps or gaps in the list as the ...
0
votes
1answer
40 views

Singleton class not working with component navigation

I'm trying to create a singleton class so I could avoid opening the same database again. I've read about creating a class provider with a static variable so it could stay the same, but I've seen that ...
0
votes
1answer
32 views

How we can hide or show RadDataForm fields dynamically in Typescript?

I am working on Nativescript+angular application and using RadDataForm. Here is my example code. <RadDataForm (propertyValidate)="onPropertyValidate($event)" row="0" tkExampleTitle ...
-1
votes
0answers
21 views

How to solve 'com.twitter.crashlytics.ios.crash.background-session' Problem

when running app on ios emulator: (CFNetwork) Task <AF6F5178-7759-425E-9320-B18F6FD2ED61>.<1> is for <org.nativescript.app4>.<com.twitter.crashlytics.ios.crash.background-session&...
0
votes
1answer
18 views

How can I use Protobuf in NativeScript?

I would like to use protobuf in a NativeScript app, however I'm struggling to figure out how, as it seems like NativeScript doesn't support binary over the wire. I know NativeScript apps can use ...
0
votes
1answer
18 views

Nativescript Gesture- Rotation strange behavior

I'm using Nativescript Vue and trying to rotate text in TextView tag via Nativescript-Gesture Rotation. Text rotates, but it isn't smooth, it jumps from one direction to another. And that's my ...
0
votes
1answer
14 views

How can I hide scrollbar for ScrollView in NativeScript?

I've been looking back and forth on how can I hide scrollbar for a ScrollView in NativeScript Angular from the html file rather than typescript or JavaScript but I couldn't find it. What have I tried ...
0
votes
1answer
38 views

How to generate checksum on click of a button

I'm trying to generate checksum for paytm integration in my app. So, i downloaded https://github.com/Paytm-Payments/Paytm_App_Checksum_Kit_NodeJs the github repository. Then on my server side, I ...
-1
votes
0answers
24 views

How can I address my emulator to my localhost with my IP address?

I am trying NativeScript, but it seems I must address the emulator to the localhost with something like this: http://192.168.1.5:3000. But this doesn't work and also when I test it in my browser doesn'...
-1
votes
1answer
17 views

I started $ tns publish ios app_id password --ipa <path to the ipa> and I got response on mac terminal > [on hold]

it happened nothing after I started tns publish ios app_id pass --ipa I just got prompt on mac > What to do ?
0
votes
2answers
25 views

Stop Nativescript from using webpack

i am developing a projet useing nativescript and angular. at release stage i tried to use webpack to optimaze my project but since i am new with webpack i got million of errors so i tried to delete ...
0
votes
0answers
17 views

Load an gesture-rotating .obj file on Android using NativeScript and OpenGL ES

Has anyone worked on 3D on NativeScript, specifically Android? I've been searching for a way to load an .obj file that I can rotate with gestures, using NativeScript. There seem to be little to no ...
0
votes
0answers
17 views

$NavigateTo doesn't do anything in created()

This is my code, I stored something in the localstorage and based on that I want to skip the first page. It succesfully get in the right case and but I don't go to the next page. I tested with 'EN', ...
0
votes
1answer
23 views

How to use SVG like content loader in NativeScript Vue?

I using NativeScript Vue and wanted to show a loading animation in my components like the https://github.com/egoist/vue-content-loader. The vue-content-loader package unfortunately don't work for ...
-1
votes
1answer
26 views

How to apply the change of a variable with Nativescript and Mapbox in Typescript

I try to change the value of a variable and apply that change in the view. When i press a marker i want to show the infos in the same page in a 'div' who pass 'hidden' to 'visible' I use a ...
0
votes
1answer
14 views

How can I create Android .keystore to release NativeScript Angular apk

I just created NativeScript Angular App. In order to create apk file for release tns build android --release requires .keystore file. Where do I get it and What are the steps I should follow to get ...
0
votes
1answer
15 views

Sidekick Cloud build - iOS - Cloud messaging

I'm pretty new in app development, that's why I'm using Cloud Builds with Nativescript Sidekick. I have well installed/setup Firebase, everything works for Android, but for iOS, I don't get messages. ...
1
vote
1answer
37 views

How to define GridLayout to accept dynamic cols and rows in NativeScript

I have two GridDatas and two buttons in html. When user press Button1 I want to display gridData1 and when Button2 is pressed, I want do display gridData2. Here, rows and cols are not dynamic. ts ...
0
votes
1answer
31 views

How to I extract this NativeScript code to re-usable function?

Problem Overview I am trying to extract some working code from my NativeScript code-behind file, and create a re-usable function from it. The code in question is actually a plug-in, called ...
-1
votes
1answer
29 views

Does anyone else find the NativeScript GridLayout's 'row/column' and 'rows/cols' pair confusing?

In my humble opinion, it should either be <GridLayout rows="auto auto" cols="auto auto"></GridLayout> and then: <Lable row="0" col="0"></Label> etc. or <GridLayout rows=...
0
votes
0answers
39 views

DevTools shows empty elements tab and sources

No matter what DevTools I use (Chrome / Inspector) the elements tab is always blank, and at times the bundle.js / vendor.js files do not show in sources either. I'm using the latest versions of TNS / ...
0
votes
1answer
20 views

Nativescript - Webpack does not recognize the debug/release specific files

I have a NS Core application which I just updated to NS 5. I also followed https://www.nativescript.org/blog/upgrading-to-nativescript-webpack-0.12.0 to upgrade the project to build using webpack. I ...