nativescript-angular

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$

Nativescript-angular compile error Cannot call a class constructor without |new|

前提是你 提交于 2020-07-10 10:24:22
问题 Nativescript-angular project builds succesfully but On tns run ios or tns run android throws error .Unable to compile and Upgraded angular to 10. I have updated to latest zone.js and added ngcc.congif.js file too.I have updated nativescripy using tns upgrade and removed platforms and added platform.It throws different error for ios and android. Package.json { "name": "sample-angular", "version": "0.0.0", "scripts": { "android": "tns run android", "ios": "tns run ios", "mobile": "tns run",

Nativescript Angular code sharing project problem with Webpack

…衆ロ難τιáo~ 提交于 2020-07-03 12:59:27
问题 I have created a code-sharing projects with Angular 8.30 and Nativescript. When I run ng serve , the app builds ok. However with tns run android I have problems with Webpack. Here is the error: Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema. - options[0] misses the property 'patterns'. Should be: [non-empty string | object { from, to?, context?, globOptions?, toType?, force?, flatten?, transform?, cacheTransform?,

Nativescript Angular code sharing project problem with Webpack

纵然是瞬间 提交于 2020-07-03 12:58:48
问题 I have created a code-sharing projects with Angular 8.30 and Nativescript. When I run ng serve , the app builds ok. However with tns run android I have problems with Webpack. Here is the error: Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema. - options[0] misses the property 'patterns'. Should be: [non-empty string | object { from, to?, context?, globOptions?, toType?, force?, flatten?, transform?, cacheTransform?,

Stop keyboard overlay when interacting with TextField in a NativeScript application

孤街浪徒 提交于 2020-06-11 04:58:09
问题 When working with a NativeScript application view where a user can enter input, the native application Keyboard Input overlays the TextField component. While this doesn't stop the user from entering text, it disrupts the UX flow and looks bad from a UI perspective. How can I get the Keyboard to not overlay the input, but instead appear underneath it like other native applications can do? Update 2 Now that it no longer overlays, I've noticed that when I leave the application to switch to

Disable button in Nativescript Raddataform

送分小仙女□ 提交于 2020-05-17 04:24:40
问题 I'm using commitMode="Immediate" and I'm trying to disable my save button when any input is invalid. What is the recommended approach to achieve this? I understand that I can just set a variable when using "manual" mode from my component, but I can't find any event that represents a change in validity of preferably the complete Raddataform (otherwise of a single property) when using Immediate validation. 回答1: You can do this by listening for validation events and then updating your model.

NativeScript - 'Build failed with error code 2'

非 Y 不嫁゛ 提交于 2020-03-23 10:19:12
问题 My NativeScript Angular project, on which I've been working for some time, stopped compiling about one week ago, error message is Build failed with error code 2 . But, on another machine project compiles normally! On both computers I use NativeScript Sidekick, latest version: 1.19.1-v2019.8.1.2, NativeScript CLI version: 6.0.3, CLI extension nativescript-cloud version: 1.18.1, CLI extension nativescript-starter-kits version: 0.3.5 I've reinstalled node, tns and Sidekick, I've deleted cloud

NativeScript Angular Cleartext HTTP traffic to localhost not permitted

北战南征 提交于 2020-03-03 12:47:34
问题 I am working with angular version of native script and trying to create a login system to my network. Below is my code that attempts to log into the network. home.component.ts import { LoginService } from '../Services/login/login.service'; export class LoginComponent implements OnInit { public user: User; loginForm: FormGroup; constructor(private router: Router, private userService: UserService, private page: Page, public loginDetails: LoginDetails, private LoginService: LoginService ) { this