741 questions
0
votes
2
answers
54
views
NativeScript Android app closes when trying to add a marker in Google Maps
I'm having a problem with my code. I'm just trying to add a simple marker. Here's my implementation
<script setup lang="ts">
import { AbsoluteLayout, Page } from '@nativescript/core';
...
0
votes
0
answers
26
views
How do you import Material Icons to NativeScript project?
I'm trying to build a Material Design checkbox using Material Icons. Specifically, just for this case, I plan to use the check_box_outline_blank, select_check_box, and indeterminate_check_box.
Here's ...
0
votes
1
answer
66
views
$navigateTo error: Failed to resolve Frame
I have a NativeScript-Vue app using Firebase like this:
<!-- src/components/App.vue -->
<script setup lang="ts">
import { firebase } from '@nativescript/firebase-core';
import '@...
1
vote
0
answers
157
views
nativescript, module flutter: page app Android assets Unable to load asset:"AssetManifest.bin" The asset does not exist or has empty data
I'm implementing a flutter module in a nativescript project. Basically a widget on a page that displays an asset that is normally stored in App_Resources/Android/src/res/drawable-* in Android... in ...
2
votes
2
answers
263
views
NativeScript duplicate kotlin class on `ns run android`
I've been working on an application that I got from a leaving colleague and I am new to NativeScript.
When trying to run an app on an Android emulator using the ns run android command I get the ...
0
votes
1
answer
43
views
Add Marker on Narivescript-vue Android using @nativecript/google-maps
i try to add a marker with Nativescript-vue using @nativescript/google-maps package, bu it says map.addMarker is not function
onReady(event) {
this.mapView = event.object;
this.addMarker(...
0
votes
1
answer
198
views
Trouble Configuring ANDROID_HOME and PATH Mac OS
ERROR:
No compatible version of the Android SDK Build-tools are installed on your system. You can install any version in the following range: '>=23 <=33'.
When I run echo $ANDROID_HOME ...
-1
votes
1
answer
119
views
How do you programmatically trigger a tap event on a button?
Ive tried all sorts but cant seem to get it work and there seems to be very little on the subject..
i currently have this
<Button text="Retrieve" @tap="handleRetrieve" ref="...
0
votes
1
answer
151
views
Nativescript Vue v-show with transition
I am struggling with using of v-show with Nativescript. I was trying to make an animation described in https://www.nuvious.com/posts/nativescript-vue-transitions .
When using v-show the element does ...
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
51
views
Nativescript 8.5 android and ios app size is > 200mb. is it ok?
After switching from ns 7 to ns 8.5, the size of the application has grown by 2 times, given that the application code has not changed at all. This is fine? And if not, what can you please tell me how ...
0
votes
1
answer
154
views
Nativescript Vue migration from 7 to 8.5.3 (Android 8.5.0) build error
I'm trying to migrate from NS 7 to NS 8.5.3 with android 8.5.0
webpack version is 5.0.14
Seems like some problem with vue-compiler
I'll be very thankful for any help
System.err: TypeError: Cannot read ...
0
votes
1
answer
210
views
How to change icon color in SearchBar component Nativescript + Vue?
(https://i.sstatic.net/f8DyP.jpg)
<SearchBar
class="w-full rounded-full"
textFieldHintColor="#fff"
color="#fff"
textProperty="#fff"
...
0
votes
1
answer
208
views
Nativescript 7+ incorrect versionName
Nativescript version: 8.3; vue/ts.
I'm attempting to assign versioning to my Nativescript application, however it doesn't reflect accurately. Everything I've tried results in a versionName of 1.0.0 ...
0
votes
0
answers
556
views
Nativescript fallback exception when referencing external dependencies
Summary
Include details about your goal:
I am attempting to include external libraries in a nativescript (vue) app; specifically openpgp
Describe expected and actual results:
Initially, I expected to ...
0
votes
1
answer
113
views
How To Load HTML Geolocation Api on Nativescript Vue with Webview?
I am very new to nativescript-vue. I was testing my codes on stackblitz. I used webview to load html page. But html geolocation api is not working. What should I do? Thanks in advance.
My Code Is:
<...
0
votes
1
answer
98
views
Positioning actionbar items on android
I have this code
<template>
<Page>
<ActionBar title="Action Items">
<StackLayout orientation="horizontal">
<Image ...
0
votes
1
answer
89
views
How to pause a animation in nativescript-vue
I use AnimationSet with AnimationDefinitions in my project.
When I call AnimationSet.cancel(), the element reset to its initial state.
It seems like the cancel() method can be customized. So, is there ...
1
vote
1
answer
399
views
How to receive notification push in Nativescript-vue
Here is my code in app.js
import Vue from 'nativescript-vue'
import Home from './components/Home'
new Vue({
render: h => h('frame', [h(Home)])
}).$start()
import { firebase } from '@...
0
votes
1
answer
216
views
Use NativeScript-Vue.js-Firebase for App push
I write app.js like this.
import Vue from 'nativescript-vue'
import Home from './components/Home'
new Vue({
render: (h) => h('frame', [h(Home)]),
}).$start()
import { firebase } from '@...
0
votes
1
answer
67
views
Nativescript Vue show badge in BottomNavigationBar
I'm currently building an app with Nativescript and Vuejs. I use the Material BottomNavigationBar(https://github.com/nativescript-community/ui-material-components/blob/master/packages/...
0
votes
1
answer
474
views
How to force portrait orientation in NativeScript 8.x for iOS and Android
There are a few community plugins that made for this, but none of them support NativeScript 8.x. They utilize "tns-core-modules" rather than "@nativescript/core". I've only found ...
0
votes
0
answers
167
views
Impossilbe to downgrade gradle version during build
As I was trying to provide fixes on our app developed with nativescript-vue 2.4 and nativescript 7.
The situation right now is gradle 7 no longer support some compiler features. For some obscure ...
0
votes
1
answer
401
views
How to prevent the virtual keyboard from opening Nativescript (IOS/Android)
I want to create smth like this
But the native keyboard always opens
The result should be like this:
TextView has focus but no virtual keyboard
I can add editable="false" attr but after ...
0
votes
1
answer
164
views
Nativescript IOS icon change in background mode
Hi Nativescript community,
When i swipe up close apps in iOS, the app icon is showing default icon.
How can i change this icon?
I used following commands to change my apps icons and splash screen ...
0
votes
1
answer
140
views
NativeScript UIMaterialBottomSheet how to disable drag effect
I'm using the NativeScript UIMaterialBottomSheet in my application and I would to disable totally the dragging effect (both for ios and android) because I want to intercept touch gestures to increase/...
2
votes
0
answers
159
views
Could not find method compile() for arguments [com.mapbox.mapboxsdk:mapbox-android-telemetry:6.1.0]
I'm trying to implement mapbox in my nativiscript app using @nativescript-community/ui-mapbox plugin. With regard to the documentation, it should be added :
<service android:name="com.mapbox....
0
votes
2
answers
444
views
Error: Cannot enable the location service. TypeError: Cannot read property 'Accuracy' of undefined
I'm trying to use @nativescript/geolocation in nativescript-vue android app. By calling the getCurrentLocation method as shown in the code below.
import * as geolocation from '@nativescript/...
0
votes
1
answer
370
views
TNS-Core-Modules dependency conflict with Nativescript 8
I inherited some Nativescript code that was working fine for iOS but failing for Android.
My environment is:
android sdk 11
jdk 14
node 16
My package.json dependencies are:
"dependencies": {
...
0
votes
1
answer
115
views
App not installed, build with nativescript
I am trying to build apk(new to android area) with nativescript in vue(tns build android), apk successfully builds but when I try to install apk in mobile. I keep getting pop-up saying play protect ...
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
493
views
nativescript-firebase issue to get push token
I implemented the nativescript-firebase (https://github.com/EddyVerbruggen/nativescript-plugin-firebase) plugin in my mobile app. It used to work fine but since I updated to the 11.1.3 version I ...
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....
1
vote
0
answers
56
views
Nativescript-vue GridLayout column losing column position when navigating tabview
I am having issues with GridLayout losing their column sizing inside a TabView whenever I go to another tab below the current index
An example is below where I am navigating from the 'Freaks' tab to ...
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
252
views
nativesctip 8 does not have platform dependency
it's my first project on NativeScript (ns), so I'm a bit new to it, and do not know how everything works in ns world.
For my project I setup ns+vue+ts projects with latest ns version, which is 8.1.5.
...
3
votes
0
answers
529
views
Migrate NativeScript 6.5.1 to 8.1.4 problems with TextField of Nativescript-vue and WebPack 5
When try to migrate NS 6.5.1 to NS 8.1.4 TextField fail.
I use:
@[email protected]
@nativescript/[email protected]
Node v16.13.0
NPM v8.1.0
After ns clean I execute ns doctor:
$ ns doctor
Error while ...
0
votes
1
answer
889
views
Cannot find connected devices. Reconnect any connected devices, verify that your system recognizes them, and run this command again
Edit: tns run android works on android-studio ide but not on vscode. I got it running in android-studio by clicking the configure in the picture below:
I'm new to nativescript and android studio ...
1
vote
1
answer
346
views
Nativescript 8.1 does not recognize <Tabs>
I could not understand how to use Tab component in Nativescript-vue after upadate Nativescript 8.1...
The below code was work collectly in Nativescript playground, however it got errors in my project.
...
0
votes
1
answer
119
views
NativeScript 8.0.0: NPM vulnerabilites switching between "3 high" to "30 high"
I am currently working on a NativeScript project that uses NativeScript core ~8.0.0 and I just ran an npm install and realized that there are 3 high vulnerabilities. When I try to fix them using npm ...
1
vote
1
answer
266
views
NativeScript: @nativescript/geolocation vs nativescript-google-maps-sdk
Error executing Static Binding Generator: File already exists. This may lead to undesired behavior.
Please change the name of one of the extended classes.
File:C:\repo\geo\geoapp\platforms\android\app\...
1
vote
1
answer
3k
views
Nativescript - Detect Jailbreak and Dynamic Instrumentation on iOS
Given the plugins that are available in the Nativescript community, your Nativescript app may or may not be sufficient to pass security penetration testing.
Below are two plugins to list a few.
https:...
0
votes
1
answer
48
views
Adding new items is extremely slow
I'm exploring Nativescript. Maybe I don't understand something but adding new items with this simple code takes more than 1 second on my Android! The same code with divs executes instantly in any Web ...
2
votes
1
answer
2k
views
NativeScript encountered a fatal error: Uncaught ReferenceError: __UI_USE_EXTERNAL_RENDERER__ is not defined
For some reason I get this error when I'm building on iOS on my mac.
***** Fatal JavaScript exception - application has been terminated. *****
NativeScript encountered a fatal error: Uncaught ...
1
vote
0
answers
67
views
Calling external application from IOS 9 webview with Nativescript
I'm trying to open external application from webview on IOS 9 and I keep getting this error.
ispmobile://param?TID=enter_your_id
-canOpenURL: failed for URL: "ispmobile://param?TID=enter_your_id&...
0
votes
1
answer
337
views
If I set up the Firebase, the install of nativescript app will be successful, but won't run
I don't have much knowledge about Android.
I am using nativescript-vue and nativescript is 8.x version.
When I first create the ns-vue template and run the "ns run android" or "ns debug ...
0
votes
1
answer
585
views
Nativescript 7 vue app crashes for some users on Android splash screen
We have received reports from around 5 users that the app has started crashing while still displaying the splash screen. We don't have device and API information for all of them, but the most recent ...
1
vote
0
answers
156
views
NativeScript Vue: component not registering on almost identical page (on one page it does, but not on the other)
Good afternoon,
I'm stuck with a problem. And hope you can help me with this. I'll try to explain the scenario.
Scenario
I have a product and category page. Both import the 'family tree' component ...
0
votes
1
answer
312
views
Nativescript-vue: How to build a chat template
I want to build a small chat as we all know from WhatsApp.
Currently I am able to display messages within a ListView.
<template>
<Page>
<ListView separatorColor="transparent&...
0
votes
2
answers
488
views
Nativescript Vue - async operations in main.js before rendering
i would like to add a login page to my app with Firebase Authentication:
https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/master/docs/AUTHENTICATION.md
Following the guide i've ...