1,263 questions
0
votes
1
answer
20
views
Automatic index of rows/cols when using GridLayout
I'm try to arrange cells in a GridLayout in such way that will match the orientation of the screen (vertical/horizontal)
Example
# .ts
mylayout = {
rows: "115,115,115",
cols: "auto&...
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
761
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
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 ...
0
votes
1
answer
820
views
ng add @nativescript/schematics migration attempt failing. Reason: "NOT SUPPORTED: keyword "id", use "$id" for schema ID"
I am trying to run "ng add @nativescript/schematics" to migrate my Angular app to Nativescript for mobile support.
When I run the command, not only does it not generate the .tns files that ...
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
166
views
NativeScript - How to Convert Magnetic Heading Degrees to True Heading Degrees
I am using Nativescript to Develop an IOS App
I am getting the magnetic Heading Degrees from the CLLocationManager
Location.service.ts
import * as geoLocation from "@nativescript/geolocation";
@...
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
283
views
bottom navigation bar nativescript
In the bottom navigation bar I want to change the button ActiveColor when I get true from service but the problem is I can't override button color with CSS it doesn't apply(nativescript angular)
<...
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)="...
2
votes
1
answer
1k
views
NativeScript 8.2.0 upgrade fails to build: Unknown option '--env.hmr'
After upgrading my NativeScript Angular app from version 8.1.5 to 8.2.0, it now fails to build:
ns run ios
Searching for devices...
Copying template files...
Platform ios successfully added. v8.2.3
...
1
vote
1
answer
12k
views
Can't import the named export 'ɵɵngDeclareNgModule' from non EcmaScript module (only default export is available)
I am getting this error while using angular 11.0 with native script and android (on importing webcam module to app.module from npm):
Error: ./node_modules/ngx-webcam/fesm2015/ngx-webcam.mjs 482:20-42
...
0
votes
1
answer
194
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
0
answers
785
views
NativeScript migrate 6 to 8. "Executing webpack failed with exit code 1."
We have an app that is based off the BottomNavigation template and I had it all working in Android. When we tried it on iOS we ran into conflicts with software and dependency versions so updated ...
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
1
answer
271
views
Nativescript Angular iOS build failing
I am trying to build run a {N} with Angular app on iOS and still have a stubborn build error that I can't find anything on through Google.
I have upgraded to node 17 whereas node 16 is the current LTS ...
2
votes
1
answer
2k
views
Error in nativescript-permissions when running android app
My app was running fine and now it is showing me an error which i tried to figure out until now.
ERROR in ../node_modules/nativescript-permissions/permissions.js
Module not found: Error: Can't resolve ...
0
votes
1
answer
159
views
Hide soft keyboard for specific TextField in Nativescript
My goal is to have a hidden Textfield which maintains focus so it can receive input from a Bluetooth barcode scanner. I have accomplished this so far, but the soft keyboard is always displaying which ...
0
votes
1
answer
321
views
How to change text font, size and format on selected text in NativeScript?
I am working on an application where a user can type in textView and change font size, font and font format (bold,italic,underline) for selected text. I am unable to find any rich Text Editor in ...
1
vote
1
answer
362
views
NativeScript : I have to develop an offline app for Android + iOS + Web app. Offline data will be stored in SQLite DB
Using native script, it is possible to access SQLite DB. But is it possible to use SQLite DB from NativeScript + Angular web app?
2
votes
0
answers
173
views
mediafilepicker cannot display pdf files
I'm currently using the nativescript-mediafilepicker to upload files. I want the user to pick files regardless of the file extension but the only file shwon by the application is a jpg file. What ...
1
vote
0
answers
84
views
NativeScript V8 BottomNavigation error: "Root should be either UIViewController or UIView"
I'm reading through the official document for NativeScript, and come across this playground example code related to "BottomNavigation".
https://play.nativescript.org/?template=play-ng&id=...
1
vote
1
answer
879
views
Convert File to base64 in Nativescript
I have been trying to get the base64 of a File of Nativescript, so far I have tried the next:
const documents: Folder = <Folder>knownFolders.documents();
const folder: Folder = <...
0
votes
2
answers
320
views
How do I share a component to every screen in Nativescript using Angular
I am trying to add a top action bar to every screen in the app but does not appear. I am using nativescript with Angular. I have setup a SharedComponentsModule that has the HeaderComponent and I ...
1
vote
0
answers
275
views
Having Issues with Bluetooth-pulgin in NativeScript: ERROR TypeError: ... is not a function?
I am currently trying to learn the Bluetooth connection in NativeScript using this code that I got from Github.
Everything is fine so far.
But after I run the app, I get this error message "ERROR ...
0
votes
1
answer
116
views
How to access iOS native types?
Inherited and trying to update a Nativescript project. It looks like the dev before me was accessing the iOS native PDFKit in order to handle PDFs, but the typing is giving an error "Cannot find ...
3
votes
2
answers
699
views
Nativescript Angular cannot find module "nativescript-angular/forms"
I am going through a tutorial that requires an import from "nativescript-angular/forms" for binding but I am getting an error that says
Cannot find module 'nativescript-angular/forms' or ...
2
votes
1
answer
354
views
NativeScript cannot launch iOS emulator
Emulator started when I run ns run ios However, app cannot be deployed with the following error:
Unable to apply changes on device: D2B97EAA-B6DB-4920-8974-4F615FEB4E82. Error is: Command xcrun with ...
-2
votes
1
answer
226
views
import { Dialogs } from "@nativescript/core"; is not working
I need to use Dialogs for my project. But by importing it from @nativescript/core (according to their docs) is not accepted. Showing error: Module '"@nativescript/core"' has no exported ...
0
votes
1
answer
341
views
Nativescript + Angular: Unable to start cleanup process error when running 'tns run android'
I am building a project in Nativescript + Angular on macOS Big Sur. I am unable to run or build the android version of the project. I keep getting this error:
Error while reporting exception: Error: ...
0
votes
2
answers
341
views
Nativescript app works on simulator but not on real device. Crash report says EXC_BAD_ACCESS (SIGSEGV)
I have a Nativescript-Angular mobile app. It works on simulator well. But once it's published to Apple store, it works on older model like iphone 7, but not on iphone 10/11/12. The ios version are all ...
0
votes
1
answer
70
views
Problem creating basic nativescript app on a mac
I'm following the extreme beginner course on this video
https://courses.nativescripting.com/courses/169856/lectures/6887491
I have after creating the app run a npm install on the source code, but ...
0
votes
1
answer
357
views
-Nativescript + Angular: Location and http post
I have started to develop an app on NativeScript using Angular. I have successfully build a server that responds to my get/post requests from the Nativescript app, but I'm struggling sending some ...
0
votes
1
answer
142
views
Nativescript Firebase Plugin storage functions on NS7 error
After upgrading to NS7, and updating my code imports, I am unable to use the firebase 'firestore' functions. Whenever any firebase storage function is called I receive:
CONSOLE ERROR: ERROR TypeError: ...
0
votes
1
answer
504
views
VSCode Native script - Don't recognise breakpoints
I'm using native script angular in vscode with nativescript extension.
When I try to debug the application (ios) it doesn't stop in the breakpoints and the editor doesn't recognise the breakpoint.
In ...
1
vote
0
answers
180
views
Nativescript ng g '@schematics/angular/utility/config' error
I got past the '@schematics/angular/utility/parse-name' error by following the recommended steps. But now I get this error:
[error] Error: Cannot find module '@schematics/angular/utility/config'
...
1
vote
0
answers
254
views
In NativeScript how to access external storage path on IOS
I'm using NativeScript + Angular. I have checked the knownFolders.documents().path for the IOS application and it's available for the current application. This Document Folder is private for the ...
0
votes
1
answer
592
views
Nativescript + Angular project error: An unhandled exception occurred: Cannot find module '@schematics/angular/utility/parse-name'
I am new to nativescript development and I am trying to create a new component using the following command:
ng g c component-name
The error I am getting is:
An unhandled exception occurred: Cannot ...
0
votes
2
answers
468
views
White screen after saving changes with NativeScript Angular HMR on Android emulator
I created a NativeScript 7.1 project with Angular 11 using tns create my-blank-ng --template @nativescript/template-blank-ng and then run it using tns run.
The app at first runs perfectly, but it only ...
-1
votes
1
answer
119
views
Nativescript angular RadSideDrawer is undefined
I am working on Nativescript Angular and i have a RadSideDrawer for iOS device only. When i install the app, login and click on the button for RadSideDrawer i receive an error that TypeError: ...
0
votes
1
answer
158
views
Using Router for web and RouterExtensions for mobile in a single component
I am trying to code share in my project between a web and mobile app version.
I have a component that requires programmatic navigation and therefore I need to inject the Angular Router (from '@angular/...
0
votes
1
answer
2k
views
Nativescript cannot find module '@nativescript/angular/router'
I am developing an app using nativescript and angular 11.0. For initial startup creating a login screen. Facing issues while running the application. Get the below exception. The issue happens only ...
0
votes
1
answer
274
views
Is there a way to embed angular components in NativeScript like you can in HTML
I am trying to convert an Angular website to an android app using NativeScript. Using HTML, I was able to Embed a component simply with:
<app-someComponent></app-someComponent>
However, ...
2
votes
0
answers
4k
views
No version of NDK matched the requested version in nativescript 7.0.11
After updating nativescript to latest version 7.0.11 I created a new project and just run it using tns run android and I get this error
No version of NDK matched the requested version 20.0.5594570. ...
0
votes
1
answer
345
views
How to restart the NativeScript Angular app?
I'm looking for a solution that helps me, with performing a restart to the native app programmatically.
I'm using the android platform only
0
votes
1
answer
182
views
Android and iOS Label line count Angular/Nativescript
I'm relatively new to Angular/Native/Mobile dev. I need to figure out the line count on a Label element, after it has been rendered on the screen. I have been trying to find a solution online for a ...
4
votes
0
answers
397
views
nativescript ios app crashes - attempting to change the getter of an unconfigurable property
I created a directive to disable the context menu on android and ios app in Nativescript.
import { Directive, OnInit, OnDestroy, ElementRef, Renderer2 } from "@angular/core";
import { isIOS ...
1
vote
2
answers
593
views
How to get the reference of a Nativescript angular modal's native view window?
I am trying to set Immersive mode only in modal page but when I do the below in ngOnInit of the modal component
Application.android.foregroundActivity.getWindow().getDecorView().setSystemUiVisibility(
...