940 questions
0
votes
0
answers
47
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/...
1
vote
0
answers
38
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() ...
1
vote
1
answer
58
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
256
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 ...
0
votes
1
answer
37
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
102
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
116
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
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
...
1
vote
0
answers
82
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&...
1
vote
0
answers
196
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
418
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
121
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
0
answers
98
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 ...
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
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
368
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"&...
-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(...
1
vote
2
answers
516
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
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";
...
1
vote
2
answers
531
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 ...
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 ...
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": "./...
0
votes
1
answer
190
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 ...
1
vote
1
answer
466
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
3
answers
685
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 ...