940 questions
0
votes
0
answers
48
views
Nativescript Android Build Failed: com.android.tools.build:gradle plugin
Just recently I've been having some trouble building my Android platform. When I build, I get two task errors.
1: Task failed with an exception.
-----------
* Where:
Build file '/Users/.../platforms/...
0
votes
0
answers
29
views
NativeScript+Angular Debug devtools URL
I have used ns create example-app --ng and ns debug android. When I open the page url: devtools://devtools/bundled/inspector.html?ws=localhost:40000 inspecting elements when navigating back and ...
1
vote
0
answers
41
views
@nativescript-community/ui-material-bottomsheet crashes on iOS with "MDCBottomSheetControllerDelegate is not defined"
I am trying to use the @nativescript-community/ui-material-bottomsheet plugin in my NativeScript Angular app. The plugin works perfectly on Android, but it crashes on iOS when calling the install() ...
0
votes
1
answer
60
views
How to properly install and use katex in a nativescript-angular project
After successfully installing and using katex in an angular project, I decided to try it in a mobile app project based on nativescript-angular.
After the installation of katex in the nativescript-...
1
vote
1
answer
63
views
Nativescript Angular Tabs. Update a component's view after changing the data in another component
In a Nativescript Angular app I am using Nativescript Material Design Tabs with lazy loading.
I have a ReportsComponent showing a RadListView of Expense Reports which each contain one or more Expense ...
0
votes
1
answer
44
views
How to bind custom Image loader to Image UI element on Angular Nativescript
I have Nativescript Angular form like this:
<ListView #list [items]="items" >
<ng-template let-i="index" #template >
<GridLayout orientation="...
0
votes
1
answer
268
views
Can't build Nativescript + Angular app: inspector_modules doesn't exist
My colleague has created a project with NativeScript + Angular.
She has pushed the project in the git-repo and then I cloned it on my machine.
I installed everything under this guide but when i run ...
2
votes
1
answer
3k
views
Can't create a new project: spawn EINVAL
I'm trying to create a new project with NativeScript and Angular.
I have installed what is described here.
When I run the command tns doctor everything is fine. There it is the result:
✔ Getting ...
0
votes
1
answer
38
views
nativescript-ui-sidedrawer - Unable to start activity ComponentInfob Calling js method onCreate failed
what I doing wrong? This is my top html:
<RadSideDrawer>
<Button ... ></Button>
<StackLayout MainContent>
<page-router-outlet></page-router-outlet>
</...
0
votes
1
answer
101
views
Nativescript angular Push notifications that trigger a background refresh before showing the push notification
I would like to extend ordinary push notifications by giving applications a chance to update content in the background before notifying the user so that the user can open the application and be ...
0
votes
1
answer
109
views
Nativescript Angular IOS : Domain=NSURLErrorDomain Code=-1001 "The request timed out." when uploading files
When I am trying to upload files in the slower networks I get the below error in the xcode
Upload Code :
uploadPhotos(): void {
let message;
this.photos = this.service....
0
votes
1
answer
758
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 ...
0
votes
1
answer
117
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 ...
1
vote
1
answer
72
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 ...
1
vote
0
answers
83
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
...
0
votes
1
answer
133
views
Tap event not happening from inside the child of a Dock Layout in iOS but you get the event if placed in Dock Layout Parent
I do have a home page where there's a dock layout and the dock layout has a docked tab navigation at the bottom of the screen and the rest of the screen has pages that the tab navigates to. Inside the ...
1
vote
0
answers
86
views
Error in downloadBitmap - java.net.MalformedURLException: unknown protocol: content
I am updating my android app from version 29 to 31, but i am having issues with selecting photos from the gallery. Making a new picture with the camera works fine.
Versions:
"@nativescript/core&...
0
votes
1
answer
101
views
NativeScript File.readSync() not working if there is space in file name
I am making an app for ios using nativescript angular. I am selecting and converting a file to base64 to send to server easily. Everything works correctly but if a file has space in it eg: 'myFile 1' ...
1
vote
0
answers
199
views
Working example of @nativescript/firebase-firestore
I am trying to use the @nativescript/firebase-firestore and @nativescript/firebase-core plugin from Nativescript in my Nativescript angular project.
I ran
npm install @nativescript/firebase-core
npm ...
0
votes
1
answer
339
views
tns run android produces error: A problem occurred configuring root project 'core'. >compileSdkVersion is not specified. Please add it to build.gradle
`I've installed Nativescript, and tns doctor returned no errors.
Then I installed android studio, and after that tns run returns the following error : "A problem occurred configuring root project ...
0
votes
1
answer
420
views
Hide action bar in NativeScript Angular
From NativeScript official documentation:
Тhе actionBarVisibility is a property that controls the visibility of the Navigation Bar in iOS and the Action Bar in Android for the current Frame. It ...
0
votes
1
answer
485
views
Save a NativeScript/Angular ImagePicker selection or get the full file path
Upon selecting an Image with the Image Picker I receive a content// url
content://com.android.providers.media.documents/document/image%3A139
When using ImageSource.fromAsset() I am returned in empty ...
0
votes
1
answer
127
views
Nativescript-angular: How to set a variable from a subscription value that will be accessible in component class scope
I have an observable in my BottomNavigationService that returns the "current tab". The "current tab" is a Subject: private _currentTab: Subject<TabName> = new Subject<...
0
votes
1
answer
171
views
NS Listview inverted (bottom to top) and loadMoreItems when hits the top
Usually, Listview scrolls from top to bottom. To load more item, we hit the last bottom item like this:
<ListView *ngIf="messages" [items]="messages" (loadMoreItems)="...
0
votes
0
answers
101
views
Memory allocation keeps increasing in Nativescript RadListView
I am having a simple app with RadListView component as in https://github.com/banchasf/nativescript-radlistview-sample. When I navigate to the page contains RadListView and navigate out to another ...
0
votes
0
answers
131
views
Nativescript memory allocation increasing when navigate from page to page
I run the Nativescript code from https://github.com/NativeScript/tutorials/tree/main/angular-tutorial. I found that the memory allocation is increasing when I navigate from home page to detail page ...
1
vote
0
answers
314
views
How to provide an option to save username and password to iCloud Keychain on iOS in NativeScript Angular?
I am working on a NativeScript iOS app. The app has a login page which requires users to login before they can use the app. I just wanted to add more convenience for the users to not have to type in ...
1
vote
0
answers
40
views
TNS BUILD FAILED: Error- cannot access IdentityCredential (NativeScript)
Installed nativescript, cloned the repo, while building the app for android using "tns build android"
Facing this error:
Exact error
Tried specifying the compileSdkVersion 30 as well in the ...
1
vote
2
answers
4k
views
Argument of type Event is not assignable to parameter of type PanGestureEventData
I'm building an NativeScript app using angular flavor. In the HTML side I've tried to bind to an TouchEvent but this is the error that I've got.
Error message:
Argument of type 'Event' is not ...
0
votes
1
answer
1k
views
How to go about using javascript variables inside a graphql-tag mutation [duplicate]
I'm using graphql-tag to setup queries and mutations to an apollo server and haven't been able to use javascript variables inside the tag consistently or successfully. Here's an example:
gql`
...
0
votes
1
answer
371
views
how to remove the auto padding in nativescript android actionbar?
I tried to add two colors with full width in nativescript android. But it always takes extra padding. Below is my code-
<ActionBar class="p-l-0 m-l-0" backgroundColor="#007FA3"&...
0
votes
1
answer
333
views
Nativescript 8 Screen freeze after splash screen is loaded in release build
Guys I'm working on one of my own projects, and I'm using
nativescript 8.2.1 along with angular 13.2.0
I had some weird issue that is when we run the project using the following command
"ns ...
-1
votes
1
answer
88
views
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(...
0
votes
1
answer
82
views
NativeScript 8.2 : how to get direction using CLHeading trueHeading
I am trying to get the direction in my nativescript app using the CLHeading trueHeading but it always returns as null.
locationservice.ts
import { Injectable } from "@angular/core";
@Injectable()...
1
vote
2
answers
519
views
ns create cannot create a working project
I do the following:
ns create HelloNg --template @nativescript/template-tab-navigation-ng
ns create BlankNg --template @nativescript/template-blank-ng
ns create Blank --template @nativescript/template-...
0
votes
1
answer
109
views
NativeScript 8.2 : [Presentation] Attempt to present UIAlertController on UIImagePickerController whose view is not in the window hierarchy
Blockquote
I am using NativeScript 8.2, I am trying to display an alert after capturing a photo in IOS.
capturePhoto(): void {
this.photoService.requestPermissions()
...
0
votes
1
answer
339
views
NativeScript 8.2 : Cannot find name CLLocationManager, CLLocationManagerDelegate
I would like to call the ios native api's in my NativeScript Application Version 8 like this
import { Injectable } from "@angular/core";
import * as geoLocation from "nativescript-geolocation";
...
0
votes
1
answer
337
views
NativeScript 8.2 : Cannot read property 'portrait' of undefined
I am using NativeScript-Orientation-Free Plugin in my NativeScript version 8.2 Application.
My app is compiling fine with "tns run ios" but
I am getting below Error on the run time and my ...
1
vote
2
answers
538
views
NativeScript Version 8.2.1 : how to use old outdated plugins
I am new to NativeScript and Webpack and i have migrated my native script app from 6.5.1 to 8.2 version, and i am using nativescript-orientation-free plugin ,i am getting build errors as this plugin ...
2
votes
1
answer
2k
views
Error "APK specifies a version code that has already been used.." while deploying to Google Play store from Azure DevOps
I'm trying to deploy our Nativescript app to the Google Play Store using a YML pipeline in Azure DevOps. There is a deployment task that automatically increases the versionCode and versionNumber, ...
1
vote
2
answers
3k
views
When integrating old nativescript libraries throws Module not found: Error: Can't resolve 'tns-core-modules/application'
When trying to install the [Razor Pay library][1]
[1]: https://www.npmjs.com/package/nativescript-razorpay, I get the following error:
ERROR in ./node_modules/nativescript-razorpay/razorpay.android.js ...
0
votes
0
answers
727
views
Trying to upgrade TypeScript but old version still not uninstalling / being replaced
I am trying to upgrade TypeScript from 3.4.5 to 4.5.4 having migrated a NativeScript project from version 6.5.0 to 8.1.5.
Ideally to completely remove the old TypeScript 3.4.5 but it still seems to be ...
2
votes
0
answers
105
views
Nativescript application crash on start up in android device
I am developed android and iOS application using Nativescript. Now I started the project migration process. I got the crash issue. The crash log like:
Package.json
{
"name": "xxx",
"main": "./...
4
votes
0
answers
220
views
Pod Install Command Failed in Nativescript Project
I am migrating the Nativescript project in current version(8.1.5). I had pod install command failed issue while running the project. I added the error screenshot for your reference
Please help to fix ...
0
votes
1
answer
193
views
Nativescript/Angular Navigating Back is not working in Children Page
I navagate from main/tv-theke-page to main-tvtheke/main-tvtheke-home-page,
but when i press back in android does not navigate back to main/tv-theke-page it exits from app
It seems is something wrong ...
0
votes
1
answer
156
views
Issues with *ngFor and GridLayout in Nativescript
I have a problem with the grid layout. My code is this one:
<GridLayout padding="10%"columns="auto, auto, auto, auto, auto, auto, auto" rows="*">
<ng-...
1
vote
1
answer
470
views
Nativescript Error : Executing webpack failed with exit code 1
I am developing the Nativescript android and iOS application. Migrated my project I had the following issue
package.json
{
"description": "Sample",
"license": "...
0
votes
0
answers
541
views
How to listen for Button KeyPresses in Android/IOS for Nativescript/Angular
Im trying to navigate between buttons with Keys(DPAD) so i need to listen for KeyEvents
I Solved it for Android i just don't know how to do it in IOS
public onButtonLoaded_1(args) {
let btn = args....
0
votes
3
answers
687
views
Can You Change Buttons color onfocuse In Nativescript/Angular
Can You Change Buttons color onfocused like yout do in TextField In Nativescript/Angular..
It works in TextField but not in BUTTON
Does someone knows some other solution, im trying to build a tvapp i ...
1
vote
3
answers
861
views
Nativescript IOS ActionBar not showing background color until i scroll
With the latest IOS15 update my actionbar in the app doesn't display the blue background like I want to until you scroll down and it slowly comes into color as you scroll.
From this link https://...