1,266
questions
0
votes
0
answers
23
views
NativeScript services error when try use a axios or other webservice library. webpack errors
I create a simple android hello-world project (nativescript angular) latest or v17 and it run normal, then I install axios npm i axios if I try a simples get a lot errors happens. I installed some ...
0
votes
1
answer
71
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
0
answers
22
views
Nativescript IOS: Compress Photo in Nativescript and Decompress in C# API
I am reducing the quality of the photo , which reduces the size of the photo on the nativescript ios app.
I am doing this to send the smaller files to the server on upload and process it on the ...
0
votes
1
answer
44
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
0
answers
26
views
Nativescript Angular IOS : File/photos Uploading Issues to server
Nativescript version - 8.4.7,
Angular 15,
IOS 17.
When uploading more than 2 photos to server/Microsoft api in the slow network (LTE 1 or 2 bars). The photos are not uploading and returning below ...
0
votes
0
answers
26
views
NativeScript Angular get target element tapped
I'm trying to detect, which element was tapped when there is a tap on the entire page, like js you have event.target when on click event is attached to document.
this._page.on("tap", (args) =...
0
votes
1
answer
544
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
104
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
656
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
353
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
141
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
115
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
246
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
141
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
860
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
186
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
732
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
511
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
657
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
254
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
139
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
271
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
287
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
167
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
83
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
809
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
298
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
252
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
111
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
633
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
302
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
207
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
289
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
309
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
62
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
320
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
136
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
487
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
179
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
235
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
580
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
455
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
103
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
141
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
257
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
333
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