nativescript

Pixel 2 API 29 httpClient not working correctly

故事扮演 提交于 2020-08-11 03:45:12
问题 I have finally released a nativescript app to the store. iOS is good, almost all versions of Android are good. However, someone downloaded onto a Pixel 2 with API 29 and told me they couldn't login. I downloaded an emulator and sure enough, the http request never goes through. This is my login code in my service: getLogin(args): RxObservable<Object> { var params = this.buildQueryParams(args); let headers = this.createRequestHeader(); return this.http.get(`${this.serverUrl}AuthenticateUser$

Pixel 2 API 29 httpClient not working correctly

五迷三道 提交于 2020-08-11 03:43:05
问题 I have finally released a nativescript app to the store. iOS is good, almost all versions of Android are good. However, someone downloaded onto a Pixel 2 with API 29 and told me they couldn't login. I downloaded an emulator and sure enough, the http request never goes through. This is my login code in my service: getLogin(args): RxObservable<Object> { var params = this.buildQueryParams(args); let headers = this.createRequestHeader(); return this.http.get(`${this.serverUrl}AuthenticateUser$

How can I change color / backgroundColor of list item in nativescript-vue?

蓝咒 提交于 2020-08-11 02:18:03
问题 I want to update selected item style when user taps on items. nextIndex/event.index is updated but style doesn't apply. Thanks for your help. https://play.nativescript.org/?template=play-vue&id=ihH3iO export default { name: "CustomListView", props: ["page", "title", "items", "selectedIndex"], data() { return { nextIndex: this.selectedIndex ? this.selectedIndex : undefined }; }, methods: { onItemTap(event) { this.nextIndex = event.index; } } }; .selected { color: white; background-color: black

How can I change color / backgroundColor of list item in nativescript-vue?

 ̄綄美尐妖づ 提交于 2020-08-11 02:13:55
问题 I want to update selected item style when user taps on items. nextIndex/event.index is updated but style doesn't apply. Thanks for your help. https://play.nativescript.org/?template=play-vue&id=ihH3iO export default { name: "CustomListView", props: ["page", "title", "items", "selectedIndex"], data() { return { nextIndex: this.selectedIndex ? this.selectedIndex : undefined }; }, methods: { onItemTap(event) { this.nextIndex = event.index; } } }; .selected { color: white; background-color: black

Why does Nativescript Static Binding Generator fail for no reason and no information?

安稳与你 提交于 2020-08-10 03:38:38
问题 I have a Nativescript core (js) project that I've been working on for nearly two years. I am up to date with version 6.7.8. I have been building fine for both Android and iOS, but recently needed to install Android Studio. I was nervous about doing this, since my existing Android support was via command line installs (via brew on my Mac) and I figured Android Studio might mess up that environment. I recorded my JAVA_HOME and ANROID_HOME environment variables so that I could reset them if that

Nativescript bind value inside image-picker function

不羁的心 提交于 2020-08-06 06:44:09
问题 I am using image-picker plugin. I can open images gallery and select single or multiple images. My problem is how to bind the path of the image to the xml image src?! It doesn't work inside getImage() function. xml: <Image class="imageSource" src="{{ thumb }}" stretch="none" /> typescript: import { Observable } from 'data/observable'; import * as imagepicker from "nativescript-imagepicker"; var counter = 0; var fs = require('file-system'); export class AssistenceViewModel extends Observable {

Error is: Command ./gradlew failed with exit code 1

筅森魡賤 提交于 2020-07-30 12:54:45
问题 I am building an native android Wallpaper app using vue-cli. i am trying to make an image downloader using nativescript-downloader plugin of nativescript. After installing nativescript-downloader using npm install --save nativescript-downloader when I trying to debug using npm run debug:android getting this Error.Error log is given below. wallpaper@1.0.0 debug:android /home/darahat/Desktop/Wallpaper npm run debug -- --env.android wallpaper@1.0.0 debug /home/darahat/Desktop/Wallpaper webpack -